diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 6a5d741b61b..76799287fe1 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -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) { |