mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
libobs: Clear image on color convert
Avoid redrawing potentially stale image from previous frame.
This commit is contained in:
parent
433eef5910
commit
d72d2552ee
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user