summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-17 16:43:48 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-17 16:44:55 -0600
commit3bf8fb64862b882bff8b372f3c2ce08ea8d401a7 (patch)
tree2059e35c9d316caa492bb5b688a17d6ebd7e73fe /src/mesa/main/image.c
parent4539410d71d5cf5c7d7344b1d3012a8a3e825a18 (diff)
mesa: fix inconsistent use of GL_UNSIGNED_INT vs. GL_UNSIGNED_INT_24_8_EXT for Z unpacking
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index a6ac821251..52c4999e16 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -4447,7 +4447,7 @@ _mesa_unpack_depth_span( const GLcontext *ctx, GLuint n,
DEPTH_VALUES(GLuint, UINT_TO_FLOAT);
break;
case GL_UNSIGNED_INT_24_8_EXT: /* GL_EXT_packed_depth_stencil */
- if (dstType == GL_UNSIGNED_INT &&
+ if (dstType == GL_UNSIGNED_INT_24_8_EXT &&
depthMax == 0xffffff &&
ctx->Pixel.DepthScale == 1.0 &&
ctx->Pixel.DepthBias == 0.0) {