mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 07:00:45 +02:00
mesa: silence uninitialized var warnings
This commit is contained in:
parent
eb26cc6cf5
commit
9d216be8cf
2 changed files with 6 additions and 0 deletions
|
|
@ -1032,6 +1032,7 @@ add_specular(GLcontext *ctx, SWspan *span)
|
|||
ASSERT(!ctx->FragmentProgram._Current);
|
||||
ASSERT(span->arrayMask & SPAN_RGBA);
|
||||
ASSERT(swrast->_ActiveAttribMask & FRAG_BIT_COL1);
|
||||
(void) swrast; /* silence warning */
|
||||
|
||||
if (span->array->ChanType == GL_FLOAT) {
|
||||
if ((span->arrayAttribs & FRAG_BIT_COL0) == 0) {
|
||||
|
|
|
|||
|
|
@ -2064,6 +2064,7 @@ clamp_rect_coord_linear(GLenum wrapMode, GLfloat coord, GLint max,
|
|||
default:
|
||||
_mesa_problem(NULL, "bad wrapMode in clamp_rect_coord_linear");
|
||||
i0 = i1 = 0;
|
||||
fcol = 0.0F;
|
||||
}
|
||||
*i0out = i0;
|
||||
*i1out = i1;
|
||||
|
|
@ -2872,6 +2873,8 @@ sample_depth_texture( GLcontext *ctx,
|
|||
texcoords[i][1]);
|
||||
slice = clamp_rect_coord_nearest(tObj->WrapR, texcoords[i][2], depth);
|
||||
break;
|
||||
default:
|
||||
col = row = slice = 0;
|
||||
}
|
||||
|
||||
if (col >= 0 && row >= 0 && col < width && row < height &&
|
||||
|
|
@ -2982,6 +2985,8 @@ sample_depth_texture( GLcontext *ctx,
|
|||
texcoords[i][1], &j0, &j1, &b);
|
||||
slice = clamp_rect_coord_nearest(tObj->WrapR, texcoords[i][2], depth);
|
||||
break;
|
||||
default:
|
||||
slice = 0;
|
||||
}
|
||||
|
||||
useBorderTexel = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue