summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2007-12-25 14:16:05 +0800
committerXiang, Haihao <[email protected]>2007-12-25 14:18:05 +0800
commitcf46aee14a9df86ce336823fd02da650e262f77e (patch)
tree85c8de56a15deea68371cf34cbb1ce8418cd8671
parent166a828ddfecf7fab110102783faa756081bf28a (diff)
mesa: fix a bad cast in put_values_z24.
The values passed to put_values_z24 are GLuint, not GLubyte. fix #13543
-rw-r--r--src/mesa/main/depthstencil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/depthstencil.c b/src/mesa/main/depthstencil.c
index d4990bb795f..fb54d6184d9 100644
--- a/src/mesa/main/depthstencil.c
+++ b/src/mesa/main/depthstencil.c
@@ -213,7 +213,7 @@ put_values_z24(GLcontext *ctx, struct gl_renderbuffer *z24rb, GLuint count,
const void *values, const GLubyte *mask)
{
struct gl_renderbuffer *dsrb = z24rb->Wrapped;
- const GLubyte *src = (const GLubyte *) values;
+ const GLuint *src = (const GLuint *) values;
ASSERT(z24rb->DataType == GL_UNSIGNED_INT);
ASSERT(dsrb->_ActualFormat == GL_DEPTH24_STENCIL8_EXT);
ASSERT(dsrb->DataType == GL_UNSIGNED_INT_24_8_EXT);