summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-02-26 22:09:05 +0000
committerBrian Paul <[email protected]>2004-02-26 22:09:05 +0000
commit04207ab7e2bd6be14ea946de7f741490a7194a95 (patch)
tree3618af8be8f93ce9da6f18c44f56148675a6386c /src/mesa
parent09a4f915d3a7c80ff44a990ea36a2551c29c1211 (diff)
fix another glDrawArrays indexing bug, jump through _glapi_Dispatch functions
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_array_api.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/tnl/t_array_api.c b/src/mesa/tnl/t_array_api.c
index f83176eb26d..fe1878af8e6 100644
--- a/src/mesa/tnl/t_array_api.c
+++ b/src/mesa/tnl/t_array_api.c
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.0
+ * Version: 6.1
*
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
@@ -52,10 +52,10 @@ static void fallback_drawarrays( GLcontext *ctx, GLenum mode, GLint start,
assert(!ctx->CompileFlag);
assert(ctx->Driver.CurrentExecPrimitive == GL_POLYGON+1);
- glBegin(mode);
- for (i = start; i < count; i++)
- glArrayElement( i );
- glEnd();
+ _glapi_Dispatch->Begin(mode);
+ for (i = 0; i < count; i++)
+ _glapi_Dispatch->ArrayElement( start + i );
+ _glapi_Dispatch->End();
}
@@ -69,11 +69,11 @@ static void fallback_drawelements( GLcontext *ctx, GLenum mode, GLsizei count,
/* Here, indices will already reflect the buffer object if active */
- glBegin(mode);
+ _glapi_Dispatch->Begin(mode);
for (i = 0 ; i < count ; i++) {
- glArrayElement( indices[i] );
+ _glapi_Dispatch->ArrayElement( indices[i] );
}
- glEnd();
+ _glapi_Dispatch->End();
}