From: Eric Anholt Date: Thu, 21 Aug 2008 18:20:20 +0000 (-0700) Subject: Flush vertices when updating texObj->GenerateMipmap state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=021ce883e6146206306ebf48ccd2cd4214619ecb;p=mesa.git Flush vertices when updating texObj->GenerateMipmap state. Caught by texturing/gen-teximage test in piglit. --- 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 {