diff options
author | Brian Paul <[email protected]> | 2014-03-25 13:32:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-25 13:33:10 -0600 |
commit | 64278b36d6252888e6a62ef25979557c6784fbd2 (patch) | |
tree | 13a3ba834feb012a4732c146cf85d0d606aa57ac /src/mesa/main/pipelineobj.c | |
parent | c4cec40883eb1657714dfe5b52f37eea18bc390d (diff) |
mesa: move GLbitfield any_valid_stages declaration before code
To fix MSVC build.
Diffstat (limited to 'src/mesa/main/pipelineobj.c')
-rw-r--r-- | src/mesa/main/pipelineobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 49fb64151a5..f55251e065d 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -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; |