mesa: make _NEW_TEXTURE dirty when changing GL_TEXTURE_CUBE_MAP_SEAMLESS
authorMarek Olšák <maraeo@gmail.com>
Mon, 2 May 2011 00:36:42 +0000 (02:36 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 2 May 2011 22:35:50 +0000 (00:35 +0200)
Otherwise there would be no way to know whether the state has been changed.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/enable.c

index 2ec19c8afbd06eae524c4e75484a09df85f5af37..6bc045d7a7ffb70f96f5e08372962e51f272bd35 100644 (file)
@@ -885,7 +885,10 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
 
       case GL_TEXTURE_CUBE_MAP_SEAMLESS:
         CHECK_EXTENSION(ARB_seamless_cube_map, cap);
-        ctx->Texture.CubeMapSeamless = state;
+        if (ctx->Texture.CubeMapSeamless != state) {
+           FLUSH_VERTICES(ctx, _NEW_TEXTURE);
+           ctx->Texture.CubeMapSeamless = state;
+        }
         break;
 
 #if FEATURE_EXT_transform_feedback