diff options
author | Vinson Lee <[email protected]> | 2010-09-15 18:47:17 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-09-15 18:47:17 -0700 |
commit | 9f7f7b3ff87e756a5d42eb4c6a953ec33e128f89 (patch) | |
tree | 2ea69dcd8fa8b5071ab1f86456bd4890f443e2f2 /src/mesa/state_tracker | |
parent | 0d2561a5621cf93087410f9cbe3fc5a8163802db (diff) |
mesa/st: Silence uninitialized variable warning.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 4c223f33742..4c18c66cc4d 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -67,7 +67,6 @@ void st_init_limits(struct st_context *st) { struct pipe_screen *screen = st->pipe->screen; struct gl_constants *c = &st->ctx->Const; - struct gl_program_constants *pc; unsigned i; c->MaxTextureLevels @@ -140,6 +139,7 @@ void st_init_limits(struct st_context *st) for(i = 0; i < MESA_SHADER_TYPES; ++i) { struct gl_shader_compiler_options *options = &st->ctx->ShaderCompilerOptions[i]; + struct gl_program_constants *pc; switch(i) { case PIPE_SHADER_FRAGMENT: @@ -151,6 +151,9 @@ void st_init_limits(struct st_context *st) case PIPE_SHADER_GEOMETRY: pc = &c->GeometryProgram; break; + default: + assert(0); + continue; } pc->MaxNativeInstructions = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_INSTRUCTIONS); |