From 021ce883e6146206306ebf48ccd2cd4214619ecb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 21 Aug 2008 11:20:20 -0700 Subject: [PATCH] Flush vertices when updating texObj->GenerateMipmap state. Caught by texturing/gen-teximage test in piglit. --- src/mesa/main/texstate.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.30.2