libobs: Clear image on color convert

Avoid redrawing potentially stale image from previous frame.
This commit is contained in:
jpark37 2022-04-06 23:55:01 -07:00 committed by Jim
parent 433eef5910
commit d72d2552ee

View file

@ -2563,6 +2563,9 @@ static void source_render(obs_source_t *source, gs_effect_t *effect)
source_space)) {
gs_enable_blending(false);
struct vec4 clear_color;
vec4_zero(&clear_color);
gs_clear(GS_CLEAR_COLOR, &clear_color, 0.0f, 0);
gs_ortho(0.0f, (float)cx, 0.0f, (float)cy, -100.0f,
100.0f);