Преглед изворни кода

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

Closes jp9000/obs-studio#1076
Bazhenoff пре 8 година
родитељ
комит
b9d044267d
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      plugins/win-capture/graphics-hook/gl-capture.c

+ 2 - 1
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;
 	}