Fix symbol lookup error caused by GL_GetProcAddress name being mangled by g++

This commit is contained in:
Indev 2023-11-26 17:15:24 +03:00
parent 7fda81ac57
commit 1999799d65

View file

@ -934,7 +934,7 @@ std::unique_ptr<IOpenGLContext> IOpenGLContext::Create(void* disp, void* window)
return ctx;
}
void* GL_GetProcAddress(const char* function_name)
extern "C" void* GL_GetProcAddress(const char* function_name)
{
if (glx_global.glXGetProcAddressARB)
return (void*)glx_global.glXGetProcAddressARB((GLubyte*)function_name);