projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a94b25
)
Flush vertices when updating texObj->GenerateMipmap state.
author
Eric Anholt
<eric@anholt.net>
Thu, 21 Aug 2008 18:20:20 +0000
(11:20 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index a6c92cb1af475cb897d371a55f7de46203b7a407..dbaeaa201ad977dd99d7c686dc25b8c23a209274 100644
(file)
--- 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 {