mesa: move GLbitfield any_valid_stages declaration before code
authorBrian Paul <brianp@vmware.com>
Tue, 25 Mar 2014 19:32:59 +0000 (13:32 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Mar 2014 19:33:10 +0000 (13:33 -0600)
To fix MSVC build.

src/mesa/main/pipelineobj.c

index 49fb64151a53bfca1cc4cfc406c587618a552311..f55251e065dd3a5a6c37ee2f9b5843a413b69510 100644 (file)
@@ -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;