summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2006-03-07 22:46:52 +0000
committerAapo Tahkola <aet@rasterburn.org>2006-03-07 22:46:52 +0000
commitd97ab9a7bd407e560366843e1715b1afcd948082 (patch)
treea65927cd138c70b1da562908f77b308a4b60888f /src/mesa/drivers
parentd9894e0d720706f7a1fcdcb9baa293ff673592d9 (diff)
Fix broken DrawElements & DrawRangeElements.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
index 855cb3e3d2..2269a8742a 100644
--- a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
+++ b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
@@ -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);
}