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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user