_mesa_set_vp_override(struct gl_context *ctx, GLboolean flag);
+static inline bool
+_mesa_ati_fragment_shader_enabled(const struct gl_context *ctx)
+{
+ return ctx->ATIFragmentShader.Enabled &&
+ ctx->ATIFragmentShader.Current->Instructions[0];
+}
+
/**
* Is the secondary color needed?
*/
(ctx->FragmentProgram._Current->info.inputs_read & VARYING_BIT_COL1))
return GL_TRUE;
+ if (_mesa_ati_fragment_shader_enabled(ctx))
+ return GL_TRUE;
+
return GL_FALSE;
}
ctx->FragmentProgram.Current->arb.Instructions;
}
-static inline bool
-_mesa_ati_fragment_shader_enabled(const struct gl_context *ctx)
-{
- return ctx->ATIFragmentShader.Enabled &&
- ctx->ATIFragmentShader.Current->Instructions[0];
-}
-
#endif