This commit is contained in:
twinaphex 2021-03-07 04:28:33 +01:00
parent 2c7d5ad944
commit b45eb0c76d
1 changed files with 8 additions and 18 deletions

View File

@ -20038,15 +20038,6 @@ void streaming_set_state(bool state)
p_rarch->streaming_enable = state;
}
static bool video_driver_gpu_record_init(struct rarch_state *p_rarch,
unsigned size)
{
p_rarch->video_driver_record_gpu_buffer = (uint8_t*)malloc(size);
if (!p_rarch->video_driver_record_gpu_buffer)
return false;
return true;
}
static void video_driver_gpu_record_deinit(struct rarch_state *p_rarch)
{
if (p_rarch->video_driver_record_gpu_buffer)
@ -20232,7 +20223,7 @@ static bool recording_init(
vp.width, vp.height);
gpu_size = vp.width * vp.height * 3;
if (!video_driver_gpu_record_init(p_rarch, gpu_size))
if (!(p_rarch->video_driver_record_gpu_buffer = (uint8_t*)malloc(gpu_size)))
return false;
}
else
@ -37505,6 +37496,7 @@ static enum runloop_state runloop_check_state(
trig_frameadvance = false;
pause_pressed = BIT256_GET(current_bits, RARCH_PAUSE_TOGGLE);
if (!p_rarch->runloop_paused)
{
/* limit pause to approximately three times per second (depending on core framerate) */
@ -37515,10 +37507,8 @@ static enum runloop_state runloop_check_state(
}
}
else
{
unpaused_frames = 0;
}
}
else
#endif
{