projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166a828
)
mesa: fix a bad cast in put_values_z24.
author
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 25 Dec 2007 06:16:05 +0000
(14:16 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 25 Dec 2007 06:18:05 +0000
(14:18 +0800)
The values passed to put_values_z24 are GLuint,
not GLubyte. fix #13543
src/mesa/main/depthstencil.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/depthstencil.c
b/src/mesa/main/depthstencil.c
index d4990bb795ffe4c133d17a171b1d1e71254ffb6f..fb54d6184d95bc451ec195aae3695603e0b7705a 100644
(file)
--- 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 GLu
byte *src = (const GLubyte
*) values;
+ const GLu
int *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);