st/mesa: Silence uninitialized variable warning.
Fixes this GCC warning. state_tracker/st_program.c: In function 'st_print_shaders': state_tracker/st_program.c:735: warning: 'sh' may be used uninitialized in this function
This commit is contained in:
@@ -744,6 +744,10 @@ st_print_shaders(struct gl_context *ctx)
|
||||
case GL_FRAGMENT_SHADER:
|
||||
sh = (i != 2) ? NULL : shProg[j]->Shaders[i];
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
sh = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (sh != NULL) {
|
||||
|
Reference in New Issue
Block a user