summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-08-21 11:20:20 -0700
committerEric Anholt <[email protected]>2008-08-21 11:21:22 -0700
commit021ce883e6146206306ebf48ccd2cd4214619ecb (patch)
tree2bc9d9177e2bdd309aa817134e9c74b92ee565b6
parent3a94b25538c647df965a93cd7734b841257ef203 (diff)
Flush vertices when updating texObj->GenerateMipmap state.
Caught by texturing/gen-teximage test in piglit.
-rw-r--r--src/mesa/main/texstate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index a6c92cb1af4..dbaeaa201ad 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1406,6 +1406,7 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params )
break;
case GL_GENERATE_MIPMAP_SGIS:
if (ctx->Extensions.SGIS_generate_mipmap) {
+ FLUSH_VERTICES(ctx, _NEW_TEXTURE);
texObj->GenerateMipmap = params[0] ? GL_TRUE : GL_FALSE;
}
else {