mesa: remove _CurrentFragmentProgram from gl_pipeline_object
[mesa.git] / src / mesa / main / api_validate.c
index 4694c36e8d1b3fdd17503cdad6af51c9f3b025f6..cbb2361552e2fce8e67a3f0262bcf7aef4c80bf0 100644 (file)
@@ -99,7 +99,7 @@ check_blend_func_error(struct gl_context *ctx)
        *     the blend equation or "blend_support_all_equations", the error
        *     INVALID_OPERATION is generated [...]"
        */
-      const struct gl_program *prog = ctx->_Shader->_CurrentFragmentProgram;
+      const struct gl_program *prog = ctx->FragmentProgram._Current;
       const GLbitfield blend_support = !prog ? 0 : prog->sh.fs.BlendSupport;
 
       if ((blend_support & ctx->Color._AdvancedBlendMode) == 0) {