libobs: Fix first frame when output restarted
When all outputs stop, and then the output starts back up again at a later point after that, the last frame data or two from the previous output session would end up as the first frame or two of the proceeding output. This was because certain rendering variables were not being properly cleared when a new output starts back up.
This commit is contained in:
parent
d73844c78a
commit
cd3d64215e
@ -809,8 +809,8 @@ static inline void output_frame(bool raw_active, const bool gpu_active)
|
||||
static void clear_base_frame_data(void)
|
||||
{
|
||||
struct obs_core_video *video = &obs->video;
|
||||
memset(video->textures_copied, 0, sizeof(video->textures_copied));
|
||||
memset(video->textures_converted, 0, sizeof(video->textures_converted));
|
||||
memset(video->textures_rendered, 0, sizeof(video->textures_rendered));
|
||||
memset(video->textures_output, 0, sizeof(video->textures_output));
|
||||
circlebuf_free(&video->vframe_info_buffer);
|
||||
video->cur_texture = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user