summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_noop.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-02-24 02:42:46 +0000
committerBrian Paul <[email protected]>2004-02-24 02:42:46 +0000
commitffa7eff9ff459060364f0ed93865351f7fc15035 (patch)
treeee9b8f3db41ea0b53b401795ef7ff054fd75b151 /src/mesa/main/api_noop.c
parentcf20f8cc3f92fcc6441b55a793bcede0d83a2a69 (diff)
glDrawArrays loop was wrong
Diffstat (limited to 'src/mesa/main/api_noop.c')
-rw-r--r--src/mesa/main/api_noop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c
index bde37e70e3d..6b331faa2d5 100644
--- a/src/mesa/main/api_noop.c
+++ b/src/mesa/main/api_noop.c
@@ -1,9 +1,8 @@
-
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.1
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -616,8 +615,8 @@ void GLAPIENTRY _mesa_noop_DrawArrays(GLenum mode, GLint start, GLsizei count)
return;
glBegin(mode);
- for (i = start ; i < count ; i++)
- glArrayElement( i );
+ for (i = 0; i < count; i++)
+ glArrayElement(start + i);
glEnd();
}