mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-27 01:41:06 -04:00
win-capture: Log if shared texture capture is unavailable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user