diff options
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 2ee92d13156..b90b16caf95 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -494,11 +494,8 @@ st_translate_stream_output_info(struct gl_program *prog) } /* Translate stream output info. */ - struct pipe_stream_output_info *so_info = NULL; - if (prog->info.stage == MESA_SHADER_VERTEX) - so_info = &((struct st_program*)prog)->state.stream_output; - else - so_info = &((struct st_program*)prog)->state.stream_output; + struct pipe_stream_output_info *so_info = + &((struct st_program*)prog)->state.stream_output; for (unsigned i = 0; i < info->NumOutputs; i++) { so_info->output[i].register_index = |