mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 14:10:30 +01:00
Fix r300 VBO support build on big endian.
This commit is contained in:
parent
bf5d6cf455
commit
6b1f144d9b
1 changed files with 3 additions and 3 deletions
|
|
@ -108,11 +108,11 @@ static void r300FixupIndexBuffer(GLcontext *ctx, const struct _mesa_index_buffer
|
|||
|
||||
#if MESA_BIG_ENDIAN
|
||||
} else { /* if (mesa_ind_buf->type == GL_UNSIGNED_SHORT) */
|
||||
GLuint size;
|
||||
GLushort *in = (GLushort *)src_ptr;
|
||||
size = sizeof(GLushort) * ((mesa_ind_buf->count + 1) & ~1);
|
||||
GLuint size = sizeof(GLushort) * ((mesa_ind_buf->count + 1) & ~1);
|
||||
|
||||
radeonAllocDmaRegion(&r300->radeon, &r300->ind_buf.bo, &r300->ind_buf.bo_offet, size, 4);
|
||||
radeonAllocDmaRegion(&r300->radeon, &r300->ind_buf.bo,
|
||||
&r300->ind_buf.bo_offset, size, 4);
|
||||
|
||||
assert(r300->ind_buf.bo->ptr != NULL);
|
||||
out = (GLuint *)ADD_POINTERS(r300->ind_buf.bo->ptr, r300->ind_buf.bo_offset);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue