diff options
author | Roland Scheidegger <rscheidegger@gmx.ch> | 2004-03-01 23:29:27 +0000 |
---|---|---|
committer | Roland Scheidegger <rscheidegger@gmx.ch> | 2004-03-01 23:29:27 +0000 |
commit | 725a56f157506a0122912da9f8df92b275da5b98 (patch) | |
tree | fb831205b9a47f5fd4d534330206f48fc6f11916 /src/mesa | |
parent | 8cff2ede6eec1dd480bb8a4835b6985955514d87 (diff) |
Fix calling fallback_drawarrays() with the wrong arguments
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl/t_array_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_array_api.c b/src/mesa/tnl/t_array_api.c index fe1878af8e6..8375c1711fe 100644 --- a/src/mesa/tnl/t_array_api.c +++ b/src/mesa/tnl/t_array_api.c @@ -150,7 +150,7 @@ _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count) /* Small primitives: attempt to share a vb (at the expense of * using the immediate interface). */ - fallback_drawarrays( ctx, mode, start, start + count ); + fallback_drawarrays( ctx, mode, start, count ); } else if (start >= (GLint) ctx->Array.LockFirst && start + count <= (GLint)(ctx->Array.LockFirst + ctx->Array.LockCount)) { @@ -233,7 +233,7 @@ _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count) skip = 0; } else { - fallback_drawarrays( ctx, mode, start, start + count ); + fallback_drawarrays( ctx, mode, start, count ); return; } } |