mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
glsl: Silence gcc uninitialized variable warning.
This commit is contained in:
parent
4eb7256854
commit
0a24e50111
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ emit_statevars(const char *name, int array_len,
|
|||
struct gl_program_parameter_list *paramList)
|
||||
{
|
||||
if (type->type == SLANG_SPEC_ARRAY) {
|
||||
GLint i, pos;
|
||||
GLint i, pos = -1;
|
||||
assert(array_len > 0);
|
||||
if (strcmp(name, "gl_ClipPlane") == 0) {
|
||||
tokens[0] = STATE_CLIPPLANE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue