mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
r300: fix big endian build
This commit is contained in:
parent
3aafd22f6a
commit
c80bc3abcd
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ static void r300FixupIndexBuffer(GLcontext *ctx, const struct _mesa_index_buffer
|
||||||
|
|
||||||
#if MESA_BIG_ENDIAN
|
#if MESA_BIG_ENDIAN
|
||||||
} else { /* if (mesa_ind_buf->type == GL_UNSIGNED_SHORT) */
|
} else { /* if (mesa_ind_buf->type == GL_UNSIGNED_SHORT) */
|
||||||
|
GLuint size;
|
||||||
GLushort *in = (GLushort *)src_ptr;
|
GLushort *in = (GLushort *)src_ptr;
|
||||||
size = sizeof(GLushort) * ((mesa_ind_buf->count + 1) & ~1);
|
size = sizeof(GLushort) * ((mesa_ind_buf->count + 1) & ~1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue