st/mesa: put ATI_texture_mirror_once in the right place
authorMarek Olšák <maraeo@gmail.com>
Wed, 14 Apr 2010 10:49:20 +0000 (12:49 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 14 Apr 2010 10:55:25 +0000 (12:55 +0200)
src/mesa/state_tracker/st_extensions.c

index eb9547921e9a564d38cab8b4b8f026e7e35581ca..b2045cf3fcbd568aedfd098985ec12f1c9c16bbe 100644 (file)
@@ -198,8 +198,6 @@ void st_init_extensions(struct st_context *st)
 
    ctx->Extensions.APPLE_vertex_array_object = GL_TRUE;
 
-   ctx->Extensions.ATI_texture_mirror_once = GL_TRUE;
-
    ctx->Extensions.MESA_pack_invert = GL_TRUE;
 
    ctx->Extensions.NV_blend_square = GL_TRUE;
@@ -247,6 +245,7 @@ void st_init_extensions(struct st_context *st)
 
    if (screen->get_param(screen, PIPE_CAP_TEXTURE_MIRROR_CLAMP) > 0) {
       ctx->Extensions.EXT_texture_mirror_clamp = GL_TRUE;
+      ctx->Extensions.ATI_texture_mirror_once = GL_TRUE;
    }
 
    if (screen->get_param(screen, PIPE_CAP_NPOT_TEXTURES)) {