Ensure GetProcAddress is populated first

* This makes sure that we have glXGetProcAddress / eglGetProcAddress available
  first so that we can then bootstrap and fetch other functions.
This commit is contained in:
baldurk
2018-08-01 23:55:17 +01:00
parent 1443422cf7
commit 39258daff7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -59,13 +59,13 @@ typedef const char *(EGLAPIENTRY *PFN_eglQueryString)(EGLDisplay dpy, EGLint nam
typedef PFNEGLPOSTSUBBUFFERNVPROC PFN_eglPostSubBufferNV;
#define EGL_HOOKED_SYMBOLS(FUNC) \
FUNC(GetProcAddress, false); \
FUNC(GetDisplay, false); \
FUNC(CreateContext, false); \
FUNC(DestroyContext, false); \
FUNC(CreateWindowSurface, false); \
FUNC(MakeCurrent, false); \
FUNC(SwapBuffers, false); \
FUNC(GetProcAddress, false); \
FUNC(PostSubBufferNV, true);
#define EGL_NONHOOKED_SYMBOLS(FUNC) \
+3 -3
View File
@@ -62,6 +62,8 @@ typedef void (*PFN_glTexCoord2f)(float, float);
typedef void (*PFN_glEnd)();
#define GLX_HOOKED_SYMBOLS(FUNC) \
FUNC(glXGetProcAddress); \
FUNC(glXGetProcAddressARB); \
FUNC(glXCreateContext); \
FUNC(glXDestroyContext); \
FUNC(glXCreateContextAttribsARB); \
@@ -69,9 +71,7 @@ typedef void (*PFN_glEnd)();
FUNC(glXMakeContextCurrent); \
FUNC(glXSwapBuffers); \
FUNC(glXCreateWindow); \
FUNC(glXDestroyWindow); \
FUNC(glXGetProcAddress); \
FUNC(glXGetProcAddressARB);
FUNC(glXDestroyWindow);
#define GLX_NONHOOKED_SYMBOLS(FUNC) \
FUNC(glXGetConfig); \