about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-25 09:24:09 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-25 09:24:09 +0200
commit4402f082455a3647616141dbca776ae94cd0f2e8 (patch)
treefe86afc3269bd67b017d17f1770d801c5b9ca2a7 /src
parent954830032b98278d1f18b50327c22e0d86ffb6ba (diff)
downloadbox64-4402f082455a3647616141dbca776ae94cd0f2e8.tar.gz
box64-4402f082455a3647616141dbca776ae94cd0f2e8.zip
Fixed some issue when GL is used via SDL2 only
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedsdl2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapped/wrappedsdl2.c b/src/wrapped/wrappedsdl2.c
index 5771d27c..af97a943 100755
--- a/src/wrapped/wrappedsdl2.c
+++ b/src/wrapped/wrappedsdl2.c
@@ -645,6 +645,8 @@ EXPORT void* my2_SDL_GL_GetProcAddress(x64emu_t* emu, void* name)
     printf_log(LOG_DEBUG, "Calling SDL_GL_GetProcAddress(%s)\n", rname);
     sdl2_my_t *my = (sdl2_my_t *)emu->context->sdl2lib->priv.w.p2;
     // check if glxprocaddress is filled, and search for lib and fill it if needed
+    if(!emu->context->glxprocaddress)
+        emu->context->glxprocaddress = (procaddess_t)my->SDL_GL_GetProcAddress;
     if(!emu->context->glwrappers)
         fillGLProcWrapper(emu->context);
     // get proc adress using actual glXGetProcAddress