summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_arrayelt.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-03-26 23:54:53 +0000
committerBrian Paul <[email protected]>2004-03-26 23:54:53 +0000
commit79b372b92a42aeee11f0500fefe8fc92126e39e3 (patch)
tree3a246d86c2da1d9752aa7d4be3e850a343ba5273 /src/mesa/main/api_arrayelt.c
parent7b776de12c3e2035f49ccd09d42a655dde90d26d (diff)
fix some warnings
Diffstat (limited to 'src/mesa/main/api_arrayelt.c')
-rw-r--r--src/mesa/main/api_arrayelt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index f42854a4db6..b375828d03a 100644
--- a/src/mesa/main/api_arrayelt.c
+++ b/src/mesa/main/api_arrayelt.c
@@ -791,7 +791,7 @@ void GLAPIENTRY _ae_loopback_array_elt( GLint elt )
/* generic attributes */
for (at = actx->attribs; at->func; at++) {
const GLubyte *src = at->array->BufferObj->Data
- + (GLuint) at->array->Ptr
+ + (unsigned long) at->array->Ptr
+ elt * at->array->StrideB;
at->func( at->index, src );
}
@@ -799,7 +799,7 @@ void GLAPIENTRY _ae_loopback_array_elt( GLint elt )
/* conventional arrays */
for (aa = actx->arrays; aa->func ; aa++) {
const GLubyte *src = aa->array->BufferObj->Data
- + (GLuint) aa->array->Ptr
+ + (unsigned long) aa->array->Ptr
+ elt * aa->array->StrideB;
aa->func( src );
}