mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
swrast: stop using MAX_WIDTH arrays in triangle code
This commit is contained in:
parent
32bf36106e
commit
fb1650b202
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ _swrast_culltriangle( struct gl_context *ctx,
|
|||
|
||||
#define RENDER_SPAN( span ) \
|
||||
GLuint i; \
|
||||
GLubyte rgba[MAX_WIDTH][4]; \
|
||||
GLubyte (*rgba)[4] = swrast->SpanArrays->rgba8; \
|
||||
span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \
|
||||
span.intTex[1] -= FIXED_HALF; \
|
||||
for (i = 0; i < span.end; i++) { \
|
||||
|
|
@ -200,7 +200,7 @@ _swrast_culltriangle( struct gl_context *ctx,
|
|||
|
||||
#define RENDER_SPAN( span ) \
|
||||
GLuint i; \
|
||||
GLubyte rgba[MAX_WIDTH][4]; \
|
||||
GLubyte (*rgba)[4] = swrast->SpanArrays->rgba8; \
|
||||
span.intTex[0] -= FIXED_HALF; /* off-by-one error? */ \
|
||||
span.intTex[1] -= FIXED_HALF; \
|
||||
for (i = 0; i < span.end; i++) { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue