mesa: move EXT_texture3D enabling to _mesa_init_extensions
authorMarek Olšák <maraeo@gmail.com>
Wed, 31 Oct 2012 01:04:16 +0000 (02:04 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 31 Oct 2012 01:04:16 +0000 (02:04 +0100)
src/mesa/main/extensions.c

index b417774710b3c21f96f63fa36617c0790be8fe39..142f8652f7314a2a839d52e0786b32edafb79b2c 100644 (file)
@@ -357,8 +357,6 @@ name_to_offset(const char* name)
  * XXX: Should these defaults also apply to GLES?
  */
 static const size_t default_extensions[] = {
-   o(EXT_texture3D),
-
    o(OES_standard_derivatives),
 
    /* Vendor Extensions */
@@ -714,6 +712,7 @@ _mesa_init_extensions( struct gl_context *ctx )
 
    /* Then, selectively turn default extensions on. */
    ctx->Extensions.dummy_true = GL_TRUE;
+   ctx->Extensions.EXT_texture3D = GL_TRUE;
    for (j = default_extensions; *j != 0; ++j)
       base[*j] = GL_TRUE;
 }