Tobias Jakobi : wined3d: Force NP2 constant reload in shader_arb_select.

Alexandre Julliard julliard at winehq.org
Thu Jul 2 08:25:08 CDT 2009


Module: wine
Branch: master
Commit: 0caebe5f514e1e34f646197bc2d909cc5e7697eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0caebe5f514e1e34f646197bc2d909cc5e7697eb

Author: Tobias Jakobi <liquid.acid at gmx.net>
Date:   Wed Jul  1 18:36:50 2009 +0200

wined3d: Force NP2 constant reload in shader_arb_select.

---

 dlls/wined3d/arb_program_shader.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 75f05c8..cdc5b10 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




More information about the wine-cvs mailing list