Clear GL dispatch table when using EGL on linux too. Closes #1040

* We can't call functions in libGL.so when using GLES, since it might be
  incompatible.
This commit is contained in:
baldurk
2018-07-24 15:51:28 +01:00
parent 63ff47499d
commit a65903938a
+4 -3
View File
@@ -537,9 +537,10 @@ static void EGLHooked(void *handle)
EGL_NONHOOKED_SYMBOLS(EGL_FETCH)
#undef EGL_FETCH
#if ENABLED(RDOC_WIN32)
// On windows we completely erase all GL function pointers. These might point into opengl32.dll
// which is not what we want to call when we're using a libEGL emulator
// on systems where EGL isn't the primary/only way to get GL function pointers, we need to ensure we
// re-fetch all function pointers through eglGetProcAddress and don't try to use any through the
// primary system library (opengl32.dll/libGL.so), since they may not work correctly.
#if DISABLED(RDOC_ANDROID)
RDCEraseEl(GL);
#endif