Fix for miscolored rects in display lists.
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Jul 2000 13:22:01 +0000 (13:22 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 10 Jul 2000 13:22:01 +0000 (13:22 +0000)
Forward-port stipple bugfix.

src/mesa/main/dlist.c

index c788bc3eaede902bc5b8e4c685fdf8d6bcecb742..15f15242b71852d034e86f3ae1442d409df50824 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: dlist.c,v 1.43 2000/06/12 15:37:18 brianp Exp $ */
+/* $Id: dlist.c,v 1.44 2000/07/10 13:22:01 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -4056,7 +4056,7 @@ static void execute_list( GLcontext *ctx, GLuint list )
             break;
          case OPCODE_VERTEX_CASSETTE: {
            struct immediate *IM;
-
+           
            if (ctx->NewState)
               gl_update_state(ctx);
            if (ctx->CompileCVAFlag) {
@@ -4516,6 +4516,7 @@ static void execute_list( GLcontext *ctx, GLuint list )
            break;
          case OPCODE_RECTF:
             (*ctx->Exec->Rectf)( n[1].f, n[2].f, n[3].f, n[4].f );
+           FLUSH_VB( ctx, "dlist rectf" );
             break;
          case OPCODE_RESET_HISTOGRAM:
             (*ctx->Exec->ResetHistogram)( n[1].e );
@@ -4969,8 +4970,6 @@ _mesa_CallLists( GLsizei n, GLenum type, const GLvoid *lists )
       ctx->CurrentDispatch = ctx->Save;
       _glapi_set_dispatch( ctx->CurrentDispatch );
    }
-
-/*    RESET_IMMEDIATE( ctx ); */
 }