mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
mesa: Silence compiler warnings on Windows.
This commit is contained in:
parent
d50d7a54de
commit
c5c7130385
2 changed files with 3 additions and 3 deletions
|
|
@ -1493,7 +1493,7 @@ set_program_uniform(GLcontext *ctx, struct gl_program *program,
|
|||
return;
|
||||
}
|
||||
|
||||
if (index + offset > program->Parameters->Size) {
|
||||
if (index + offset > (GLint) program->Parameters->Size) {
|
||||
/* out of bounds! */
|
||||
return;
|
||||
}
|
||||
|
|
@ -1557,7 +1557,7 @@ set_program_uniform(GLcontext *ctx, struct gl_program *program,
|
|||
/* if the uniform is bool-valued, convert to 1.0 or 0.0 */
|
||||
if (is_boolean_type(program->Parameters->Parameters[index].DataType)) {
|
||||
for (i = 0; i < elems; i++) {
|
||||
uniformVal[i] = uniformVal[i] ? 1.0 : 0.0;
|
||||
uniformVal[i] = uniformVal[i] ? 1.0f : 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ _slang_count_temporaries(struct gl_program *prog)
|
|||
maxIndex = inst->SrcReg[j].Index;
|
||||
}
|
||||
if (inst->DstReg.File == PROGRAM_TEMPORARY) {
|
||||
if (maxIndex < inst->DstReg.Index)
|
||||
if (maxIndex < (GLint) inst->DstReg.Index)
|
||||
maxIndex = inst->DstReg.Index;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue