Flush vertices when updating texObj->GenerateMipmap state.

Caught by texturing/gen-teximage test in piglit.
This commit is contained in:
Eric Anholt
2008-08-21 11:20:20 -07:00
parent 3a94b25538
commit 021ce883e6

View File

@@ -1406,6 +1406,7 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params )
break; break;
case GL_GENERATE_MIPMAP_SGIS: case GL_GENERATE_MIPMAP_SGIS:
if (ctx->Extensions.SGIS_generate_mipmap) { if (ctx->Extensions.SGIS_generate_mipmap) {
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
texObj->GenerateMipmap = params[0] ? GL_TRUE : GL_FALSE; texObj->GenerateMipmap = params[0] ? GL_TRUE : GL_FALSE;
} }
else { else {