some more count vs. end confusion
This commit is contained in:
@@ -1009,9 +1009,9 @@ void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs )
|
|||||||
|
|
||||||
|
|
||||||
void _tnl_build_vertices( GLcontext *ctx,
|
void _tnl_build_vertices( GLcontext *ctx,
|
||||||
GLuint start,
|
GLuint start,
|
||||||
GLuint count,
|
GLuint end,
|
||||||
GLuint newinputs )
|
GLuint newinputs )
|
||||||
{
|
{
|
||||||
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
|
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
|
||||||
GLuint stride = vtx->vertex_size;
|
GLuint stride = vtx->vertex_size;
|
||||||
@@ -1021,18 +1021,18 @@ void _tnl_build_vertices( GLcontext *ctx,
|
|||||||
vtx->new_inputs = 0;
|
vtx->new_inputs = 0;
|
||||||
|
|
||||||
if (newinputs)
|
if (newinputs)
|
||||||
vtx->emit( ctx, start, count, v );
|
vtx->emit( ctx, start, end, v );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
|
void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
|
||||||
GLuint start,
|
GLuint start,
|
||||||
GLuint count,
|
GLuint end,
|
||||||
void *dest )
|
void *dest )
|
||||||
{
|
{
|
||||||
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
|
struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx);
|
||||||
vtx->emit( ctx, start, count, dest );
|
vtx->emit( ctx, start, end, dest );
|
||||||
return (void *)((GLubyte *)dest + vtx->vertex_size * (count - start));
|
return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -103,12 +103,12 @@ extern void _tnl_init_vertices( GLcontext *ctx,
|
|||||||
|
|
||||||
extern void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
|
extern void *_tnl_emit_vertices_to_buffer( GLcontext *ctx,
|
||||||
GLuint start,
|
GLuint start,
|
||||||
GLuint count,
|
GLuint end,
|
||||||
void *dest );
|
void *dest );
|
||||||
|
|
||||||
extern void _tnl_build_vertices( GLcontext *ctx,
|
extern void _tnl_build_vertices( GLcontext *ctx,
|
||||||
GLuint start,
|
GLuint start,
|
||||||
GLuint count,
|
GLuint end,
|
||||||
GLuint newinputs );
|
GLuint newinputs );
|
||||||
|
|
||||||
extern void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs );
|
extern void _tnl_invalidate_vertices( GLcontext *ctx, GLuint newinputs );
|
||||||
|
Reference in New Issue
Block a user