mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1240730 - Initialize all GLLibraryEGL symbols in the ctor. r=mattwoodrow
This commit is contained in:
parent
ee58cfde07
commit
4353f18669
@ -108,9 +108,52 @@ public:
|
||||
GLLibraryEGL()
|
||||
: mInitialized(false),
|
||||
mEGLLibrary(nullptr),
|
||||
mEGLDisplay(EGL_NO_DISPLAY),
|
||||
mIsANGLE(false),
|
||||
mIsWARP(false)
|
||||
{
|
||||
ClearSymbols();
|
||||
}
|
||||
|
||||
void ClearSymbols() {
|
||||
mSymbols.fGetDisplay = nullptr;
|
||||
mSymbols.fGetPlatformDisplayEXT = nullptr;
|
||||
mSymbols.fTerminate = nullptr;
|
||||
mSymbols.fGetCurrentSurface = nullptr;
|
||||
mSymbols.fGetCurrentContext = nullptr;
|
||||
mSymbols.fMakeCurrent = nullptr;
|
||||
mSymbols.fDestroyContext = nullptr;
|
||||
mSymbols.fCreateContext = nullptr;
|
||||
mSymbols.fDestroySurface = nullptr;
|
||||
mSymbols.fCreateWindowSurface = nullptr;
|
||||
mSymbols.fCreatePbufferSurface = nullptr;
|
||||
mSymbols.fCreatePixmapSurface = nullptr;
|
||||
mSymbols.fBindAPI = nullptr;
|
||||
mSymbols.fInitialize = nullptr;
|
||||
mSymbols.fChooseConfig = nullptr;
|
||||
mSymbols.fGetError = nullptr;
|
||||
mSymbols.fGetConfigAttrib = nullptr;
|
||||
mSymbols.fGetConfigs = nullptr;
|
||||
mSymbols.fWaitNative = nullptr;
|
||||
mSymbols.fGetProcAddress = nullptr;
|
||||
mSymbols.fSwapBuffers = nullptr;
|
||||
mSymbols.fCopyBuffers = nullptr;
|
||||
mSymbols.fQueryString = nullptr;
|
||||
mSymbols.fQueryStringImplementationANDROID = nullptr;
|
||||
mSymbols.fQueryContext = nullptr;
|
||||
mSymbols.fBindTexImage = nullptr;
|
||||
mSymbols.fReleaseTexImage = nullptr;
|
||||
mSymbols.fCreateImage = nullptr;
|
||||
mSymbols.fDestroyImage = nullptr;
|
||||
mSymbols.fLockSurface = nullptr;
|
||||
mSymbols.fUnlockSurface = nullptr;
|
||||
mSymbols.fQuerySurface = nullptr;
|
||||
mSymbols.fQuerySurfacePointerANGLE = nullptr;
|
||||
mSymbols.fCreateSync = nullptr;
|
||||
mSymbols.fDestroySync = nullptr;
|
||||
mSymbols.fClientWaitSync = nullptr;
|
||||
mSymbols.fGetSyncAttrib = nullptr;
|
||||
mSymbols.fDupNativeFenceFDANDROID = nullptr;
|
||||
}
|
||||
|
||||
void InitClientExtensions();
|
||||
|
Loading…
Reference in New Issue
Block a user