linux-capture: Fix texture lingering after window closes

After source window closes, texture is still visible in preview until
the source window opens again.
This commit is contained in:
Charles Ray Shisler III
2016-02-21 18:25:36 -08:00
parent 2b7036dc93
commit 2bdc1e9d7c

View File

@@ -520,6 +520,10 @@ void XCompcapMain::tick(float seconds)
void XCompcapMain::render(gs_effect_t *effect)
{
PLock lock(&p->lock, true);
if (!p->win)
return;
effect = obs_get_base_effect(OBS_EFFECT_OPAQUE);
if (!lock.isLocked() || !p->tex)