diff options
author | Brian Paul <[email protected]> | 2009-08-13 13:44:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-13 13:44:01 -0600 |
commit | a531a5cf940a55d4438521fe394ae5395977bf3f (patch) | |
tree | 91a84117edbb19a7af14a4be1a010b32cf299548 | |
parent | 1ce3f5a806f6efb29c231157987e3495c7b41022 (diff) |
glsl: fix some uninitialized pointers
-rw-r--r-- | src/mesa/shader/shader_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index cf9f8b92224..14da974a873 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -885,7 +885,7 @@ _mesa_get_active_attrib(GLcontext *ctx, GLuint program, GLuint index, static struct gl_program_parameter * get_uniform_parameter(const struct gl_shader_program *shProg, GLuint index) { - const struct gl_program *prog; + const struct gl_program *prog = NULL; GLint progPos; progPos = shProg->Uniforms->Uniforms[index].VertPos; @@ -915,7 +915,7 @@ _mesa_get_active_uniform(GLcontext *ctx, GLuint program, GLuint index, GLenum *type, GLchar *nameOut) { const struct gl_shader_program *shProg; - const struct gl_program *prog; + const struct gl_program *prog = NULL; const struct gl_program_parameter *param; GLint progPos; |