From e5d660e9441f0e7fc51b28096ae0bb740b64357c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 2 Oct 2017 15:29:04 -0700 Subject: [PATCH] graphics-hook: Blacklist specific game from GL capture "Life is Feudal: Your Own" will use Direct3D to render the game, then OpenGL to render its in-game menus, which causes a conflict with itself. This specifically blacklists the game from capturing OpenGL to prevent that from happening. --- plugins/win-capture/graphics-hook/gl-capture.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/win-capture/graphics-hook/gl-capture.c b/plugins/win-capture/graphics-hook/gl-capture.c index 595655004..3c82b0c7c 100644 --- a/plugins/win-capture/graphics-hook/gl-capture.c +++ b/plugins/win-capture/graphics-hook/gl-capture.c @@ -874,6 +874,14 @@ bool hook_gl(void) return false; } + /* "life is feudal: your own" somehow uses both opengl and directx at + * the same time, so blacklist it from capturing opengl */ + const char *process_name = get_process_name(); + if (_strcmpi(process_name, "yo_cm_client.exe") == 0) { + hlog("Ignoring opengl for game: %s", process_name); + return true; + } + if (!gl_register_window()) { return true; }