Skip to content

Commit

Permalink
win-capture: Do not render game capture if not active
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed May 15, 2016
1 parent c5008e9 commit d24a818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/win-capture/game-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down

0 comments on commit d24a818

Please sign in to comment.