From ffa7eff9ff459060364f0ed93865351f7fc15035 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 24 Feb 2004 02:42:46 +0000 Subject: glDrawArrays loop was wrong --- src/mesa/tnl/t_save_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/tnl/t_save_api.c') diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c index b6d083d7a11..db338bbef6c 100644 --- a/src/mesa/tnl/t_save_api.c +++ b/src/mesa/tnl/t_save_api.c @@ -1297,8 +1297,8 @@ static void GLAPIENTRY _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei co return; _save_NotifyBegin( ctx, mode | PRIM_WEAK ); - for (i = start ; i < count ; i++) - _glapi_Dispatch->ArrayElement( i ); + for (i = 0; i < count; i++) + _glapi_Dispatch->ArrayElement(start + i); _glapi_Dispatch->End(); } -- cgit v1.2.3