mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
swrast: Silence uninitialized variable warnings in s_triangle.c
This commit is contained in:
parent
aa44efb045
commit
555dc25c4c
1 changed files with 6 additions and 0 deletions
|
|
@ -540,6 +540,9 @@ affine_span(GLcontext *ctx, SWspan *span,
|
|||
info.format = obj->Image[0][b]->_BaseFormat; \
|
||||
info.filter = obj->MinFilter; \
|
||||
info.envmode = unit->EnvMode; \
|
||||
info.er = 0; \
|
||||
info.eg = 0; \
|
||||
info.eb = 0; \
|
||||
span.arrayMask |= SPAN_RGBA; \
|
||||
\
|
||||
if (info.envmode == GL_BLEND) { \
|
||||
|
|
@ -809,6 +812,9 @@ fast_persp_span(GLcontext *ctx, SWspan *span,
|
|||
info.format = obj->Image[0][b]->_BaseFormat; \
|
||||
info.filter = obj->MinFilter; \
|
||||
info.envmode = unit->EnvMode; \
|
||||
info.er = 0; \
|
||||
info.eg = 0; \
|
||||
info.eb = 0; \
|
||||
\
|
||||
if (info.envmode == GL_BLEND) { \
|
||||
/* potential off-by-one error here? (1.0f -> 2048 -> 0) */ \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue