projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f14f2
)
mesa: Only do read write when we don't have a depth value to write
author
Jakob Bornecrantz
<jakob@vmware.com>
Thu, 11 Jun 2009 14:37:53 +0000
(15:37 +0100)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Thu, 11 Jun 2009 14:37:53 +0000
(15:37 +0100)
src/mesa/state_tracker/st_cb_drawpixels.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_drawpixels.c
b/src/mesa/state_tracker/st_cb_drawpixels.c
index b674e6b74a16a56bf810d93b59976e950828d726..04cf673f63728a15d3dd5ab51606e3cbe6236b91 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/
src/mesa/state_tracker/st_cb_drawpixels.c
@@
-643,7
+643,7
@@
draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
y = ctx->DrawBuffer->Height - y - height;
}
- if(format
=
= GL_DEPTH_STENCIL &&
+ if(format
!
= GL_DEPTH_STENCIL &&
pf_get_component_bits( strb->format, PIPE_FORMAT_COMP_Z ) != 0)
usage = PIPE_TRANSFER_READ_WRITE;
else