Navigation Menu

Skip to content

Commit

Permalink
Patched to compile.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 18, 2008
1 parent 9ff8ace commit b146067
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mojoshader_opengl.c
Expand Up @@ -302,7 +302,12 @@ static void *loadsym(void *(*lookup)(const char *fn), const char *fn, int *ext)

static void lookup_entry_points(void *(*lookup)(const char *fnname))
{
#define DO_LOOKUP(ext, typ, fn) ctx->fn = (typ) loadsym(lookup, #fn, &ctx->have_##ext)
#define DO_LOOKUP(ext, typ, fn) { \
int exist = ctx->have_##ext; \
ctx->fn = (typ) loadsym(lookup, #fn, &exist); \
ctx->have_##ext = exist; \
}

DO_LOOKUP(base_opengl, PFNGLGETSTRINGPROC, glGetString);
DO_LOOKUP(base_opengl, PFNGLGETERRORPROC, glGetError);
DO_LOOKUP(base_opengl, PFNGLGETINTEGERVPROC, glGetIntegerv);
Expand Down

0 comments on commit b146067

Please sign in to comment.