diff options
author | Eric Anholt <[email protected]> | 2009-06-19 15:49:24 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-06-19 16:43:45 -0700 |
commit | 64edde1004f7a69e77877bba24d315a92bcd47c8 (patch) | |
tree | 80977a0c4bf7421e526450a3435038b44e9f117b | |
parent | 396b4043f085ec09a074447bbbb835c53aa82b7b (diff) |
intel: Fix glClear behavior versus display lists.
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.
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c index 21f534d090b..273856fd2f0 100644 --- a/src/mesa/drivers/dri/intel/intel_clear.c +++ b/src/mesa/drivers/dri/intel/intel_clear.c @@ -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; } |