mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
remove more unused vars, assertions
This commit is contained in:
parent
81c4fee160
commit
257f799849
1 changed files with 2 additions and 4 deletions
|
|
@ -1036,25 +1036,23 @@ Parse_VectorSrc(struct parse_state *parseState,
|
|||
else if (IsDigit(token[0]) || token[0] == '-' || token[0] == '+' || token[0] == '.'){
|
||||
/* literal scalar constant */
|
||||
GLfloat values[4];
|
||||
GLuint paramIndex, swizzle;
|
||||
GLuint paramIndex;
|
||||
if (!Parse_ScalarConstant(parseState, values))
|
||||
RETURN_ERROR;
|
||||
paramIndex = _mesa_add_unnamed_constant(parseState->parameters,
|
||||
values, 4, NULL);
|
||||
ASSERT(swizzle == SWIZZLE_NOOP);
|
||||
srcReg->File = PROGRAM_NAMED_PARAM;
|
||||
srcReg->Index = paramIndex;
|
||||
}
|
||||
else if (token[0] == '{'){
|
||||
/* literal vector constant */
|
||||
GLfloat values[4];
|
||||
GLuint paramIndex, swizzle;
|
||||
GLuint paramIndex;
|
||||
(void) Parse_String(parseState, "{");
|
||||
if (!Parse_VectorConstant(parseState, values))
|
||||
RETURN_ERROR;
|
||||
paramIndex = _mesa_add_unnamed_constant(parseState->parameters,
|
||||
values, 4, NULL);
|
||||
ASSERT(swizzle == SWIZZLE_NOOP);
|
||||
srcReg->File = PROGRAM_NAMED_PARAM;
|
||||
srcReg->Index = paramIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue