projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd868b4
)
fix assertion in read_depth_pixels()
author
Nicolai Haehnle
<nhaehnle@gmail.com>
Sun, 18 Mar 2007 17:02:35 +0000
(11:02 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sun, 18 Mar 2007 17:02:35 +0000
(11:02 -0600)
src/mesa/swrast/s_readpix.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_readpix.c
b/src/mesa/swrast/s_readpix.c
index 15dc8106b4a9f3ecc08e7eda60b54addcdf2d29b..c5524c0630681824a55a67191291ac94abbd359a 100644
(file)
--- a/
src/mesa/swrast/s_readpix.c
+++ b/
src/mesa/swrast/s_readpix.c
@@
-119,7
+119,7
@@
read_depth_pixels( GLcontext *ctx,
&& !biasOrScale && !packing->SwapBytes) {
/* Special case: directly read 24-bit unsigned depth values. */
GLint j;
- ASSERT(rb->InternalFormat == GL_DEPTH_COMPONENT
32
);
+ ASSERT(rb->InternalFormat == GL_DEPTH_COMPONENT
24
);
ASSERT(rb->DataType == GL_UNSIGNED_INT);
for (j = 0; j < height; j++, y++) {
GLuint *dest = (GLuint *)