projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
440a5c7
)
reenable some clear code that was temporarily disabled
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 17:55:28 +0000
(11:55 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 21 Sep 2007 17:55:28 +0000
(11:55 -0600)
src/mesa/state_tracker/st_cb_clear.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_clear.c
b/src/mesa/state_tracker/st_cb_clear.c
index c53446d588dd71e327b8b8de897f48a5cf575851..639e0ceb40ae2766a38f800fce9a86cfe8ae6d3f 100644
(file)
--- 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);