some more count vs. end confusion
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 19 Jan 2004 23:29:40 +0000 (23:29 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 19 Jan 2004 23:29:40 +0000 (23:29 +0000)
src/mesa/tnl/t_vertex.c
src/mesa/tnl/t_vertex.h

index 1e0616324eb465bdfd5cf5a56ae05d5da5de4e62..3729e1cc7d7cedaa61943446581225d95b42739f 100644 (file)
@@ -1009,9 +1009,9 @@ void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs )
 
 
 void _tnl_build_vertices( GLcontext *ctx,
-                      GLuint start,
-                      GLuint count,
-                      GLuint newinputs )
+                         GLuint start,
+                         GLuint end,
+                         GLuint newinputs )
 {
    struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
    GLuint stride = vtx->vertex_size;
@@ -1021,18 +1021,18 @@ void _tnl_build_vertices( GLcontext *ctx,
    vtx->new_inputs = 0;
 
    if (newinputs)
-      vtx->emit( ctx, start, count, v );
+      vtx->emit( ctx, start, end, v );
 }
 
 
 void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
-                                  GLuint start,
-                                  GLuint count,
-                                  void *dest )
+                                   GLuint start,
+                                   GLuint end,
+                                   void *dest )
 {
    struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
-   vtx->emit( ctx, start, count, dest );
-   return (void *)((GLubyte *)dest + vtx->vertex_size * (count - start));
+   vtx->emit( ctx, start, end, dest );
+   return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start));
 }
 
 
index 10d67631c57a13597e0e817a7091304496e293bf..297b6a4cbe945705380359d4842da9fd73f9399d 100644 (file)
@@ -103,12 +103,12 @@ extern void _tnl_init_vertices( GLcontext *ctx,
 
 extern void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
                                           GLuint start,
-                                          GLuint count,
+                                          GLuint end,
                                           void *dest );
 
 extern void _tnl_build_vertices( GLcontext *ctx,
                                 GLuint start,
-                                GLuint count,
+                                GLuint end,
                                 GLuint newinputs );
 
 extern void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs );