mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
Fix broken DrawElements & DrawRangeElements.
This commit is contained in:
parent
d9894e0d72
commit
d97ab9a7bd
1 changed files with 4 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ void radeonDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *
|
|||
struct tnl_prim prim;
|
||||
static void *ptr = NULL;
|
||||
static struct r300_dma_region rvb;
|
||||
GLvoid *indices;
|
||||
GLvoid *indices = c_indices;
|
||||
|
||||
if (count > 65535) {
|
||||
WARN_ONCE("Too many verts!\n");
|
||||
|
|
@ -162,7 +162,7 @@ void radeonDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *
|
|||
return;
|
||||
}
|
||||
/* actual address is the sum of pointers */
|
||||
indices = (const GLvoid *)
|
||||
indices = (GLvoid *)
|
||||
ADD_POINTERS(ctx->Array.ElementArrayBufferObj->Data, (const GLubyte *) c_indices);
|
||||
}
|
||||
|
||||
|
|
@ -327,7 +327,7 @@ void radeonDrawRangeElements(GLenum mode, GLuint min, GLuint max, GLsizei count,
|
|||
int i;
|
||||
void *ptr = NULL;
|
||||
static struct r300_dma_region rvb;
|
||||
GLvoid *indices;
|
||||
GLvoid *indices = c_indices;
|
||||
|
||||
if (count > 65535) {
|
||||
WARN_ONCE("Too many verts!\n");
|
||||
|
|
@ -341,7 +341,7 @@ void radeonDrawRangeElements(GLenum mode, GLuint min, GLuint max, GLsizei count,
|
|||
return;
|
||||
}
|
||||
/* actual address is the sum of pointers */
|
||||
indices = (const GLvoid *)
|
||||
indices = (GLvoid *)
|
||||
ADD_POINTERS(ctx->Array.ElementArrayBufferObj->Data, (const GLubyte *) c_indices);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue