From d4de8b9a7e3dd75f9e06fe553528c26846d2ef03 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 26 Apr 2017 21:04:41 +0200 Subject: [PATCH] win-capture: Log if shared texture capture is unavailable --- plugins/win-capture/game-capture.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index a0f7d2822..91a2afe37 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -735,13 +735,10 @@ static inline bool init_hook_info(struct game_capture *gc) reset_frame_interval(gc); obs_enter_graphics(); - if (!gs_shared_texture_available()) - gc->global_hook_info->force_shmem = true; - obs_leave_graphics(); - - obs_enter_graphics(); - if (!gs_shared_texture_available()) + if (!gs_shared_texture_available()) { + warn("init_hook_info: shared texture capture unavailable"); gc->global_hook_info->force_shmem = true; + } obs_leave_graphics(); return true;