Skip to content
Snippets Groups Projects
Commit 5198950c authored by Keith Whitwell's avatar Keith Whitwell
Browse files

Don't adjust indicies if adjustment is zero

parent 88d66b72
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,9 @@ static void _tnl_draw_range_elements( GLcontext *ctx, GLenum mode, ...@@ -100,8 +100,9 @@ static void _tnl_draw_range_elements( GLcontext *ctx, GLenum mode,
tnl->vb.Elts = (GLuint *)indices; tnl->vb.Elts = (GLuint *)indices;
for (i = 0 ; i < count ; i++) if (start)
indices[i] -= start; for (i = 0 ; i < count ; i++)
indices[i] -= start;
if (ctx->Array.LockCount) if (ctx->Array.LockCount)
tnl->Driver.RunPipeline( ctx ); tnl->Driver.RunPipeline( ctx );
...@@ -113,8 +114,9 @@ static void _tnl_draw_range_elements( GLcontext *ctx, GLenum mode, ...@@ -113,8 +114,9 @@ static void _tnl_draw_range_elements( GLcontext *ctx, GLenum mode,
tnl->pipeline.run_input_changes |= ctx->Array._Enabled; tnl->pipeline.run_input_changes |= ctx->Array._Enabled;
} }
for (i = 0 ; i < count ; i++) if (start)
indices[i] += start; for (i = 0 ; i < count ; i++)
indices[i] += start;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment