Cleaned up GL symbol lookup slightly.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 24 May 2011 04:35:01 -0400
changeset 1023 8f4d16a3b380
parent 1022 3503b95f0dab
child 1024 dbff93345a84
Cleaned up GL symbol lookup slightly.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Sun May 22 18:21:19 2011 -0400
+++ b/mojoshader_opengl.c	Tue May 24 04:35:01 2011 -0400
@@ -772,9 +772,7 @@
 static void lookup_entry_points(MOJOSHADER_glGetProcAddress lookup, void *d)
 {
     #define DO_LOOKUP(ext, typ, fn) { \
-        int exist = ctx->have_##ext; \
-        ctx->fn = (typ) loadsym(lookup, d, #fn, &exist); \
-        ctx->have_##ext = exist; \
+        ctx->fn = (typ) loadsym(lookup, d, #fn, &ctx->have_##ext); \
     }
 
     DO_LOOKUP(base_opengl, PFNGLGETSTRINGPROC, glGetString);