Commit bdaff25c authored by Timothy Arceri's avatar Timothy Arceri
Browse files

mesa: small _mesa_UseProgram() tidy up



Makes the code easier to follow.
Reviewed-by: Emma Anholt's avatarEric Anholt <eric@anholt.net>
parent 244cef16
......@@ -1856,7 +1856,7 @@ void GLAPIENTRY
_mesa_UseProgram(GLuint program)
{
GET_CURRENT_CONTEXT(ctx);
struct gl_shader_program *shProg;
struct gl_shader_program *shProg = NULL;
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "glUseProgram %u\n", program);
......@@ -1883,9 +1883,6 @@ _mesa_UseProgram(GLuint program)
print_shader_info(shProg);
}
}
else {
shProg = NULL;
}
/* The ARB_separate_shader_object spec says:
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment