mojoshader_opengl.c
changeset 1023 8f4d16a3b380
parent 906 6864f0e8fa11
child 1024 dbff93345a84
--- 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);