Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
mesa
Commits
bdaff25c
Commit
bdaff25c
authored
May 03, 2017
by
Timothy Arceri
Browse files
mesa: small _mesa_UseProgram() tidy up
Makes the code easier to follow. Reviewed-by:
Eric Anholt
<
eric@anholt.net
>
parent
244cef16
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesa/main/shaderapi.c
View file @
bdaff25c
...
@@ -1856,7 +1856,7 @@ void GLAPIENTRY
...
@@ -1856,7 +1856,7 @@ void GLAPIENTRY
_mesa_UseProgram
(
GLuint
program
)
_mesa_UseProgram
(
GLuint
program
)
{
{
GET_CURRENT_CONTEXT
(
ctx
);
GET_CURRENT_CONTEXT
(
ctx
);
struct
gl_shader_program
*
shProg
;
struct
gl_shader_program
*
shProg
=
NULL
;
if
(
MESA_VERBOSE
&
VERBOSE_API
)
if
(
MESA_VERBOSE
&
VERBOSE_API
)
_mesa_debug
(
ctx
,
"glUseProgram %u
\n
"
,
program
);
_mesa_debug
(
ctx
,
"glUseProgram %u
\n
"
,
program
);
...
@@ -1883,9 +1883,6 @@ _mesa_UseProgram(GLuint program)
...
@@ -1883,9 +1883,6 @@ _mesa_UseProgram(GLuint program)
print_shader_info
(
shProg
);
print_shader_info
(
shProg
);
}
}
}
}
else
{
shProg
=
NULL
;
}
/* The ARB_separate_shader_object spec says:
/* The ARB_separate_shader_object spec says:
*
*
...
...
Bugzilla Migration User
@bugzilla-migration
mentioned in issue
#1132
·
Sep 18, 2019
mentioned in issue
#1132
mentioned in issue #1132
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment