summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-11-06 13:52:48 -0700
committerBrian Paul <[email protected]>2009-11-06 13:52:48 -0700
commit3105f3aa88e4b59eed3c7f175af77fbdb4af5924 (patch)
tree42fae7791969056d71c72502c5181eb4a2ce2edc /src/mesa/drivers/dri/intel
parent8395da2e8af40367714c70afe299568272f36cc8 (diff)
intel: better front color buffer test in intelClear()
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_clear.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c
index 1cf41ee6b8a..f682ee3de5b 100644
--- a/src/mesa/drivers/dri/intel/intel_clear.c
+++ b/src/mesa/drivers/dri/intel/intel_clear.c
@@ -33,7 +33,6 @@
#include "intel_context.h"
#include "intel_blit.h"
-#include "intel_buffers.h"
#include "intel_chipset.h"
#include "intel_clear.h"
#include "intel_fbo.h"
@@ -76,7 +75,9 @@ intelClear(GLcontext *ctx, GLbitfield mask)
struct gl_framebuffer *fb = ctx->DrawBuffer;
GLuint i;
- intel_check_front_buffer_rendering(intel);
+ if (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_FRONT_RIGHT)) {
+ intel->front_buffer_dirty = GL_TRUE;
+ }
if (0)
fprintf(stderr, "%s\n", __FUNCTION__);