radeon / r200: Pass the API into _mesa_initialize_context
[mesa.git] / src / glsl / lower_packed_varyings.cpp
index 9edef5d0487a03ff02303536723f19741c5b1fef..c23d1801b4e2bf029239bd0b421c79cfaa6448c1 100644 (file)
@@ -669,7 +669,7 @@ lower_packed_varyings(void *mem_ctx, unsigned location_base,
                                          gs_input_vertices, &new_instructions);
    visitor.run(instructions);
    if (mode == ir_var_shader_out) {
-      if (shader->Type == GL_GEOMETRY_SHADER) {
+      if (shader->Stage == MESA_SHADER_GEOMETRY) {
          /* For geometry shaders, outputs need to be lowered before each call
           * to EmitVertex()
           */