diff options
author | Marek Olšák <[email protected]> | 2014-08-03 04:42:50 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-08-11 21:53:57 +0200 |
commit | 858452e54242011d77e4d0364ff05497795c3c4f (patch) | |
tree | dfcb8fae9d982ca88ce3ce2497920796b024b4d4 /src/mesa/main/extensions.c | |
parent | 35e755faa7d0c9e2db079df47804977388c43c99 (diff) |
mesa: make _mesa_init_extensions context-independent
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r-- | src/mesa/main/extensions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index d60838a1ce7..57776c133b8 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -667,9 +667,9 @@ _mesa_one_time_init_extension_overrides(void) * Note: Sets gl_extensions.dummy_true to true. */ void -_mesa_init_extensions( struct gl_context *ctx ) +_mesa_init_extensions(struct gl_extensions *extensions) { - GLboolean *base = (GLboolean *) &ctx->Extensions; + GLboolean *base = (GLboolean *) extensions; GLboolean *sentinel = base + o(extension_sentinel); GLboolean *i; @@ -678,8 +678,8 @@ _mesa_init_extensions( struct gl_context *ctx ) *i = GL_FALSE; /* Then, selectively turn default extensions on. */ - ctx->Extensions.dummy_true = GL_TRUE; - ctx->Extensions.EXT_texture3D = GL_TRUE; + extensions->dummy_true = GL_TRUE; + extensions->EXT_texture3D = GL_TRUE; } |