win-capture: Do not render game capture if not active

This commit is contained in:
jp9000
2016-05-15 04:20:39 -07:00
parent c5008e9c65
commit d24a81868e

View File

@@ -1394,7 +1394,7 @@ static inline void game_capture_render_cursor(struct game_capture *gc)
static void game_capture_render(void *data, gs_effect_t *effect)
{
struct game_capture *gc = data;
if (!gc->texture)
if (!gc->texture || !gc->active)
return;
effect = obs_get_base_effect(gc->config.allow_transparency ?