projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d9063
)
gallium: check if surface has defined status in check_clear_depth_with_quad()
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 16:23:29 +0000
(09:23 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 16:23:50 +0000
(09:23 -0700)
This was part of Keith's patch from Friday.
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 758d4a408685e29a70fd29ab5794f6f530f6ee04..0cd469c156a99dc64355e6494b76647bea273c76 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_clear.c
+++ b/
src/mesa/state_tracker/st_cb_clear.c
@@
-408,7
+408,9
@@
check_clear_depth_with_quad(GLcontext *ctx, struct gl_renderbuffer *rb)
const struct st_renderbuffer *strb = st_renderbuffer(rb);
const GLboolean isDS = is_depth_stencil_format(strb->surface->format);
return ctx->Scissor.Enabled
- || (isDS && ctx->DrawBuffer->Visual.stencilBits > 0);
+ || (isDS &&
+ strb->surface->status == PIPE_SURFACE_STATUS_DEFINED &&
+ ctx->DrawBuffer->Visual.stencilBits > 0);
}