mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa: move GLbitfield any_valid_stages declaration before code
To fix MSVC build.
This commit is contained in:
parent
c4cec40883
commit
64278b36d6
1 changed files with 2 additions and 1 deletions
|
|
@ -227,6 +227,7 @@ _mesa_UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
|
|||
|
||||
struct gl_pipeline_object *pipe = lookup_pipeline_object(ctx, pipeline);
|
||||
struct gl_shader_program *shProg = NULL;
|
||||
GLbitfield any_valid_stages;
|
||||
|
||||
if (!pipe) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramStages(pipeline)");
|
||||
|
|
@ -247,7 +248,7 @@ _mesa_UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program)
|
|||
* GL_TESS_CONTROL_SHADER_BIT
|
||||
* GL_TESS_EVALUATION_SHADER_BIT
|
||||
*/
|
||||
GLbitfield any_valid_stages = GL_VERTEX_SHADER_BIT | GL_FRAGMENT_SHADER_BIT;
|
||||
any_valid_stages = GL_VERTEX_SHADER_BIT | GL_FRAGMENT_SHADER_BIT;
|
||||
if (_mesa_has_geometry_shaders(ctx))
|
||||
any_valid_stages |= GL_GEOMETRY_SHADER_BIT;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue