Resolve GL ES hooking on Linux

After a change in the GL ES library hooking, capturing
on Linux was unable to start the target application.
This is because the hooks were not loaded correctly
(all gl/egl pointers were Null pointers) as an early
exit obstructed the initialization of the pointers.
This commit is contained in:
Peter Gal
2018-02-26 11:47:19 +01:00
committed by Baldur Karlsson
parent 5953d16e48
commit 571c26b1a1
+2
View File
@@ -435,7 +435,9 @@ bool EGLHook::CreateHooks(const char *libName)
PosixHookLibrary("libGLESv2.so.2", NULL);
PosixHookLibrary("libGLESv3.so", NULL);
#if ENABLED(RDOC_ANDROID)
return true;
#endif
}
bool success = PopulateHooks();