mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
mesa: remove comparisons that are always true
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
194f6235b3
commit
da1f92779d
2 changed files with 0 additions and 3 deletions
|
|
@ -1260,7 +1260,6 @@ _mesa_execute_program(struct gl_context * ctx,
|
|||
else if (swz == SWIZZLE_ONE)
|
||||
result[i] = 1.0;
|
||||
else {
|
||||
ASSERT(swz >= 0);
|
||||
ASSERT(swz <= 3);
|
||||
result[i] = src[swz];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -295,9 +295,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index state[],
|
|||
const gl_state_index modifier = state[4];
|
||||
const GLfloat *m;
|
||||
GLuint row, i;
|
||||
ASSERT(firstRow >= 0);
|
||||
ASSERT(firstRow < 4);
|
||||
ASSERT(lastRow >= 0);
|
||||
ASSERT(lastRow < 4);
|
||||
if (mat == STATE_MODELVIEW_MATRIX) {
|
||||
matrix = ctx->ModelviewMatrixStack.Top;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue