From 24fa5805191b9ecdd3cd40388c6a1a65626b027f Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 30 Sep 2021 15:12:51 -0400 Subject: [PATCH] [client] opengl: fix getProcAddressGL2 naming TabNine autocompleted the function too hard. --- client/src/gl_dynprocs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/gl_dynprocs.c b/client/src/gl_dynprocs.c index 2fc7e64b..c8bd8d91 100644 --- a/client/src/gl_dynprocs.c +++ b/client/src/gl_dynprocs.c @@ -31,7 +31,7 @@ static void * getProcAddressGL(const char * name) return (void *) glXGetProcAddressARB((const GLubyte *) name); } -static void * setProcAddressGL2(const char * name, const char * backup) +static void * getProcAddressGL2(const char * name, const char * backup) { void * func = getProcAddressGL(name); return func ? func : getProcAddressGL(backup); @@ -39,11 +39,11 @@ static void * setProcAddressGL2(const char * name, const char * backup) void gl_dynProcsInit(void) { - g_gl_dynProcs.glGenBuffers = setProcAddressGL2("glGenBuffers", "glGenBuffersARB"); - g_gl_dynProcs.glBindBuffer = setProcAddressGL2("glBindBuffer", "glBindBufferARB"); - g_gl_dynProcs.glBufferData = setProcAddressGL2("glBufferData", "glBufferDataARB"); - g_gl_dynProcs.glBufferSubData = setProcAddressGL2("glBufferSubData", "glBufferSubDataARB"); - g_gl_dynProcs.glDeleteBuffers = setProcAddressGL2("glDeleteBuffers", "glDeleteBuffersARB"); + g_gl_dynProcs.glGenBuffers = getProcAddressGL2("glGenBuffers", "glGenBuffersARB"); + g_gl_dynProcs.glBindBuffer = getProcAddressGL2("glBindBuffer", "glBindBufferARB"); + g_gl_dynProcs.glBufferData = getProcAddressGL2("glBufferData", "glBufferDataARB"); + g_gl_dynProcs.glBufferSubData = getProcAddressGL2("glBufferSubData", "glBufferSubDataARB"); + g_gl_dynProcs.glDeleteBuffers = getProcAddressGL2("glDeleteBuffers", "glDeleteBuffersARB"); g_gl_dynProcs.glIsSync = getProcAddressGL("glIsSync"); g_gl_dynProcs.glFenceSync = getProcAddressGL("glFenceSync");