graphics-hook: blacklist OpenGL capture for "cm_client.exe"

Closes jp9000/obs-studio#1076
This commit is contained in:
Bazhenoff 2017-11-13 17:53:28 +03:00 committed by jp9000
parent 0cbd9cc051
commit b9d044267d

View File

@ -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;
}