projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe385f
)
intel: Fix clears to depth_stencil texture attachments.
author
Eric Anholt
<eric@anholt.net>
Wed, 24 Sep 2008 22:10:45 +0000
(15:10 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 24 Sep 2008 22:13:19 +0000
(15:13 -0700)
Broken by
0adfd1021035e90995a25ec5f20b736e55075d92
, showed up as an assertion
failure in a software fallback in the shadowtex demo when we failed to
recognize the texture format.
src/mesa/drivers/dri/intel/intel_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_fbo.c
b/src/mesa/drivers/dri/intel/intel_fbo.c
index 3677dd41d906378ea8e2ab55900201d5d16d51e7..fce5e36b9d17c71f8dbef7a471c1d006456a4ff2 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/
src/mesa/drivers/dri/intel/intel_fbo.c
@@
-540,7
+540,7
@@
intel_update_wrapper(GLcontext *ctx, struct intel_renderbuffer *irb,
irb->Base._ActualFormat = GL_DEPTH_COMPONENT16;
irb->Base._BaseFormat = GL_DEPTH_COMPONENT;
DBG("Render to DEPTH16 texture OK\n");
- } else if (texImage->TexFormat == &_mesa_texformat_
z24_s8
) {
+ } else if (texImage->TexFormat == &_mesa_texformat_
s8_z24
) {
irb->Base._ActualFormat = GL_DEPTH24_STENCIL8_EXT;
irb->Base._BaseFormat = GL_DEPTH_STENCIL_EXT;
DBG("Render to DEPTH_STENCIL texture OK\n");