summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-10-16 09:10:22 -0600
committerBrian Paul <[email protected]>2015-10-16 09:10:22 -0600
commit4627e8058ec1bc02cc2b6464ff83394b2d16879e (patch)
tree5d14d9c53329d0d9f15ead3c82caa8b6fbe1a610 /src/mesa
parentccbb52ac1117aa99144785bc032dd459f24b8ba1 (diff)
Revert "mesa: remove FLUSH_VERTICES() in _mesa_MatrixMode()"
This reverts commit 0de5e0f3fb0f3671a3ecec6ab4473f9131ecd0ae. Michel Dänzer spotted two piglit regressions from the change. I suspect that removing the FLUSH_VERTICES() actually exposed a bug elsewhere but I don't have time to hunt down the root issue at this time.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/matrix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index 5ff5ac5bfe1..2b8016a4a72 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -151,6 +151,7 @@ _mesa_MatrixMode( GLenum mode )
if (ctx->Transform.MatrixMode == mode && mode != GL_TEXTURE)
return;
+ FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
switch (mode) {
case GL_MODELVIEW: