summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-21 11:55:28 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-21 11:55:28 -0600
commit46f606e9715145218331a04f0d1f66fb9f8531d6 (patch)
tree71c48c0420acb8823dd50c90a7fe48a253e3c1d8
parent440a5c7c24e65dd19689ba2d2ce231a7ea7e4704 (diff)
reenable some clear code that was temporarily disabled
-rw-r--r--src/mesa/state_tracker/st_cb_clear.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c
index c53446d588..639e0ceb40 100644
--- a/src/mesa/state_tracker/st_cb_clear.c
+++ b/src/mesa/state_tracker/st_cb_clear.c
@@ -493,15 +493,12 @@ clear_depth_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
assert(strb->surface->format);
-#if 0
if (ctx->Scissor.Enabled ||
(isDS && ctx->DrawBuffer->Visual.stencilBits > 0)) {
/* scissoring or we have a combined depth/stencil buffer */
clear_with_quad(ctx, GL_FALSE, GL_TRUE, GL_FALSE);
}
- else
-#endif
- {
+ else {
/* simple clear of whole buffer */
GLuint clearValue = depth_value(strb->surface->format, ctx->Depth.Clear);
ctx->st->pipe->clear(ctx->st->pipe, strb->surface, clearValue);