intel: Fix glClear behavior versus display lists.
authorEric Anholt <eric@anholt.net>
Fri, 19 Jun 2009 22:49:24 +0000 (15:49 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Jun 2009 23:54:59 +0000 (16:54 -0700)
The CALL_DrawArrays was leaking the clear's primitives into the display
list with GL_COMPILE_AND_EXECUTE.  Use _mesa_DrawArrays instead, which
doesn't appear to leak.  Fixes piglit dlist-clear test.
(cherry picked from commit 64edde1004f7a69e77877bba24d315a92bcd47c8)

src/mesa/drivers/dri/intel/intel_clear.c

index 4dfaee8a4a3728c1638fe837f15d52c5f06fb184..19f47632ac073978ea8e2ef9791675d872ff8307 100644 (file)
@@ -264,7 +264,7 @@ intel_clear_tris(GLcontext *ctx, GLbitfield mask)
         _mesa_Disable(GL_STENCIL_TEST);
       }
 
-      CALL_DrawArrays(ctx->Exec, (GL_TRIANGLE_FAN, 0, 4));
+      _mesa_DrawArrays(GL_TRIANGLE_FAN, 0, 4);
 
       mask &= ~this_mask;
    }