Mesa (mesa_7_5_branch): mesa/dlist: restore missing SAVE_FLUSH_VERTICES in save_ShadeModel

Keith Whitwell keithw at kemper.freedesktop.org
Thu Jul 2 12:31:53 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 00438bb94a9ee03f8a4d5472d7ae598fcbdb1572
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=00438bb94a9ee03f8a4d5472d7ae598fcbdb1572

Author: Keith Whitwell <keithw at vmware.com>
Date:   Tue Jun 30 12:19:11 2009 +0100

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.

---

 src/mesa/main/dlist.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 3647401..93b8a8f 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);




More information about the mesa-commit mailing list