mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
swrast: remove MAX_WIDTH array in s_span.c
This commit is contained in:
parent
30ea34a8d9
commit
ed65c5ccc3
1 changed files with 2 additions and 1 deletions
|
|
@ -1319,7 +1319,8 @@ _swrast_write_rgba_span( struct gl_context *ctx, SWspan *span)
|
||||||
/* color[fragOutput] will be written to buffer[buf] */
|
/* color[fragOutput] will be written to buffer[buf] */
|
||||||
|
|
||||||
if (rb) {
|
if (rb) {
|
||||||
GLchan rgbaSave[MAX_WIDTH][4];
|
/* re-use one of the attribute array buffers for rgbaSave */
|
||||||
|
GLchan (*rgbaSave)[4] = (GLchan (*)[4]) span->array->attribs[0];
|
||||||
struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
|
struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
|
||||||
GLenum colorType = srb->ColorType;
|
GLenum colorType = srb->ColorType;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue