mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
glsl: fix some uninitialized pointers
This commit is contained in:
parent
1ce3f5a806
commit
a531a5cf94
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue