From b9d044267d80fd0197f8a0d585e92b22e3b71c65 Mon Sep 17 00:00:00 2001 From: Bazhenoff Date: Mon, 13 Nov 2017 17:53:28 +0300 Subject: [PATCH] graphics-hook: blacklist OpenGL capture for "cm_client.exe" Closes jp9000/obs-studio#1076 --- plugins/win-capture/graphics-hook/gl-capture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/win-capture/graphics-hook/gl-capture.c b/plugins/win-capture/graphics-hook/gl-capture.c index 3c82b0c7c..478ae8195 100644 --- a/plugins/win-capture/graphics-hook/gl-capture.c +++ b/plugins/win-capture/graphics-hook/gl-capture.c @@ -877,7 +877,8 @@ bool hook_gl(void) /* "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) { + if (_strcmpi(process_name, "yo_cm_client.exe") == 0 || + _strcmpi(process_name, "cm_client.exe") == 0) { hlog("Ignoring opengl for game: %s", process_name); return true; }