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.
This commit is contained in:
Keith Whitwell
2009-06-30 12:19:11 +01:00
parent 0846c88ec3
commit 00438bb94a
+1
View File
@@ -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);