diff options
author | marha <marha@users.sourceforge.net> | 2012-09-14 11:09:08 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-09-14 11:09:08 +0200 |
commit | b08ba56019b146786e1cde553c036dd0c4fd02e5 (patch) | |
tree | 651ada0a32bd95a5c80838f11d31205c8d3e8807 /mesalib/src/mesa/main/extensions.c | |
parent | aa10a08696cae93799fcddae3f0245ceee905e01 (diff) | |
download | vcxsrv-b08ba56019b146786e1cde553c036dd0c4fd02e5.tar.gz vcxsrv-b08ba56019b146786e1cde553c036dd0c4fd02e5.tar.bz2 vcxsrv-b08ba56019b146786e1cde553c036dd0c4fd02e5.zip |
fontconfig libX11 mesa xkeyboard-config git update 14 sep 2012
Diffstat (limited to 'mesalib/src/mesa/main/extensions.c')
-rw-r--r-- | mesalib/src/mesa/main/extensions.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mesalib/src/mesa/main/extensions.c b/mesalib/src/mesa/main/extensions.c index 36e1fcf62..e6f4541f0 100644 --- a/mesalib/src/mesa/main/extensions.c +++ b/mesalib/src/mesa/main/extensions.c @@ -927,7 +927,7 @@ _mesa_get_extension_count(struct gl_context *ctx) base = (GLboolean *) &ctx->Extensions; for (i = extension_table; i->name != 0; ++i) { - if (base[i->offset]) { + if (base[i->offset] && (i->api_set & (1 << ctx->API))) { ctx->Extensions.Count++; } } @@ -947,10 +947,11 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index) base = (GLboolean*) &ctx->Extensions; n = 0; for (i = extension_table; i->name != 0; ++i) { - if (n == index && base[i->offset]) { - return (const GLubyte*) i->name; - } else if (base[i->offset]) { - ++n; + if (base[i->offset] & (i->api_set & (1 << ctx->API))) { + if (n == index) + return (const GLubyte*) i->name; + else + ++n; } } |