mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 11:50:17 +01:00
mesa: fix a bad cast in put_values_z24.
The values passed to put_values_z24 are GLuint, not GLubyte. fix #13543
This commit is contained in:
parent
166a828ddf
commit
cf46aee14a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue