فهرست منبع

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.
jp9000 8 سال پیش
والد
کامیت
e5d660e944
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      plugins/win-capture/graphics-hook/gl-capture.c

+ 8 - 0
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;
 	}