From 0caebe5f514e1e34f646197bc2d909cc5e7697eb Mon Sep 17 00:00:00 2001 From: Tobias Jakobi Date: Wed, 1 Jul 2009 18:36:50 +0200 Subject: [PATCH] wined3d: Force NP2 constant reload in shader_arb_select. --- dlls/wined3d/arb_program_shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 75f05c8782e..cdc5b10e399 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -4248,6 +4248,9 @@ static void shader_arb_select(IWineD3DDevice *iface, BOOL usePS, BOOL useVS) { { shader_arb_ps_local_constants(This); } + + /* Force constant reloading for the NP2 fixup (see comment in shader_glsl_select for more info) */ + if (compiled->np2fixup_info.super.active) This->shader_backend->shader_load_np2fixup_constants(iface, usePS, useVS); } else if(GL_SUPPORT(ARB_FRAGMENT_PROGRAM) && !priv->use_arbfp_fixed_func) { /* Disable only if we're not using arbfp fixed function fragment processing. If this is used, * keep GL_FRAGMENT_PROGRAM_ARB enabled, and the fixed function pipeline will bind the fixed function -- 2.11.4.GIT