瀏覽代碼

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

jp9000 9 年之前
父節點
當前提交
d24a81868e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/win-capture/game-capture.c

+ 1 - 1
plugins/win-capture/game-capture.c

@@ -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 ?