mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: small _mesa_UseProgram() tidy up
Makes the code easier to follow. Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
244cef1694
commit
bdaff25c20
1 changed files with 1 additions and 4 deletions
|
|
@ -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:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue