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.
This commit is contained in:
parent
c914c1c23b
commit
e5d660e944
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user