Module: Mesa
Branch: master
Commit: aafbaa9e6a87cecb336f2704b799430d74c60456
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aafbaa9e6a87cecb336f2704b799430d74c60456

Author: Marek Olšák <[email protected]>
Date:   Mon May  2 02:36:42 2011 +0200

mesa: make _NEW_TEXTURE dirty when changing GL_TEXTURE_CUBE_MAP_SEAMLESS

Otherwise there would be no way to know whether the state has been changed.

Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>

---

 src/mesa/main/enable.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 2ec19c8..6bc045d 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -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

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to