1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wined3d/arb: Always disable the fragment pipeline in shader_arb_select().

The original intent here seems to have been to avoid disabling
GL_FRAGMENT_PROGRAM_ARB only to reënable it again. There is not actually any
harm in this, however.
This commit is contained in:
Zebediah Figura 2023-01-05 11:16:14 -06:00 committed by Alexandre Julliard
parent 4ed7bb35ed
commit 37d909e007

View file

@ -4639,10 +4639,10 @@ static void shader_arb_select(void *shader_priv, struct wined3d_context *context
GL_EXTCALL(glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, compiled->prgId));
checkGLcall("glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, compiled->prgId);");
if (!priv->use_arbfp_fixed_func)
priv->fragment_pipe->fp_enable(context, FALSE);
priv->fragment_pipe->fp_enable(context, FALSE);
/* Enable OpenGL fragment programs. */
/* Enable OpenGL fragment programs. Note that we may have already
* disabled them when disabling the fragment pipeline. */
gl_info->gl_ops.gl.p_glEnable(GL_FRAGMENT_PROGRAM_ARB);
checkGLcall("glEnable(GL_FRAGMENT_PROGRAM_ARB);");