Skip to content

Commit

Permalink
Cleaned up GL symbol lookup slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 24, 2011
1 parent fdccc4c commit f878408
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mojoshader_opengl.c
Expand Up @@ -772,9 +772,7 @@ static void *loadsym(MOJOSHADER_glGetProcAddress lookup, void *d,
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);
Expand Down

0 comments on commit f878408

Please sign in to comment.