Flush vertices when updating texObj->GenerateMipmap state.
authorEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 18:20:20 +0000 (11:20 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 18:21:22 +0000 (11:21 -0700)
Caught by texturing/gen-teximage test in piglit.

src/mesa/main/texstate.c

index a6c92cb1af475cb897d371a55f7de46203b7a407..dbaeaa201ad977dd99d7c686dc25b8c23a209274 100644 (file)
@@ -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 {