diff options
Diffstat (limited to 'src/mesa/drivers/common/t_dd_dmatmp.h')
-rw-r--r-- | src/mesa/drivers/common/t_dd_dmatmp.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/mesa/drivers/common/t_dd_dmatmp.h b/src/mesa/drivers/common/t_dd_dmatmp.h index 15568ee..b537127 100644 --- a/src/mesa/drivers/common/t_dd_dmatmp.h +++ b/src/mesa/drivers/common/t_dd_dmatmp.h @@ -43,18 +43,17 @@ #error "must have at least triangles to use render template" #endif -#if !HAVE_ELTS -#define ALLOC_ELTS( nr ) -#define EMIT_ELT( offset, elt ) -#define INCR_ELTS( nr ) -#define ELT_INIT(prim) -#define GET_CURRENT_VB_MAX_ELTS() 0 -#define GET_SUBSEQUENT_VB_MAX_ELTS() 0 -#define ALLOC_ELTS_NEW_PRIMITIVE(nr) -#define RELEASE_ELT_VERTS() -#define EMIT_INDEXED_VERTS( ctx, start, count ) - -#endif +/* #if !HAVE_ELTS */ +/* #define ALLOC_ELTS( nr ) */ +/* #define EMIT_ELT( offset, elt ) */ +/* #define INCR_ELTS( nr ) */ +/* #define ELT_INIT(prim) */ +/* #define GET_CURRENT_VB_MAX_ELTS() 0 */ +/* #define GET_SUBSEQUENT_VB_MAX_ELTS() 0 */ +/* #define ALLOC_ELTS_NEW_PRIMITIVE(nr) */ +/* #define RELEASE_ELT_VERTS() */ +/* #define EMIT_INDEXED_VERTS( ctx, start, count ) */ +/* #endif */ #ifndef EMIT_TWO_ELTS #define EMIT_TWO_ELTS( offset, elt0, elt1 ) \ @@ -99,7 +98,7 @@ static void TAG(emit_elts)( GLcontext *ctx, GLuint *elts, GLuint nr ) ALLOC_ELTS( nr ); - for ( i = 0 ; i < nr ; i++, elts += 2 ) { + for ( i = 0 ; i < nr ; i+=2, elts += 2 ) { EMIT_TWO_ELTS( 0, elts[0], elts[1] ); INCR_ELTS( 2 ); } |