summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dlist.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-06-30 12:19:11 +0100
committerKeith Whitwell <[email protected]>2009-06-30 12:19:11 +0100
commit00438bb94a9ee03f8a4d5472d7ae598fcbdb1572 (patch)
tree59f0c190f69ad6d74d34eabda90dee05d8934506 /src/mesa/main/dlist.c
parent0846c88ec3a63ac5e4096aedcdc107cbe71f306b (diff)
mesa/dlist: restore missing SAVE_FLUSH_VERTICES in save_ShadeModel
Reorganization of ShadeModel to avoid flushing vertices too often ended up never flushing vertices due to omitted line of code.
Diffstat (limited to 'src/mesa/main/dlist.c')
-rw-r--r--src/mesa/main/dlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 3647401a1bd..93b8a8f56d2 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -3186,6 +3186,7 @@ save_ShadeModel(GLenum mode)
if (ctx->ListState.Current.ShadeModel == mode)
return;
+ SAVE_FLUSH_VERTICES(ctx);
ctx->ListState.Current.ShadeModel = mode;
n = ALLOC_INSTRUCTION(ctx, OPCODE_SHADE_MODEL, 1);