mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Add selfreference for OpenGL
This commit is contained in:
parent
ae2984b691
commit
4e675bceb6
@ -373,6 +373,9 @@ void checkOpenGLHook() {
|
||||
fods("OpenGL: Unhooked OpenGL App %s", procname);
|
||||
bHooked = true;
|
||||
|
||||
// Add a ref to ourselves; we do NOT want to get unloaded directly from this process.
|
||||
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, reinterpret_cast<char *>(&checkOpenGLHook), &hSelf);
|
||||
|
||||
INJECT(wglSwapBuffers);
|
||||
// INJECT(wglSwapLayerBuffers);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user