diff options
author | Marek Olšák <[email protected]> | 2011-05-02 02:36:42 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-05-03 00:35:50 +0200 |
commit | aafbaa9e6a87cecb336f2704b799430d74c60456 (patch) | |
tree | 5fd6692ae048f4efb98ae2ce246a8ed3aea3f2df /src/mesa/main | |
parent | 220abb7adf61872ddfb5b250be8085ee0fc2416d (diff) |
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]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | 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 2ec19c8afbd..6bc045d7a7f 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 |