[PATCH] WineD3D: replace an #if 0 with if(0)=0A=

Stefan Doesinger stefan at codeweavers.com
Thu Aug 21 13:30:57 CDT 2008


=0A=
---=0A=
 dlls/wined3d/arb_program_shader.c |   16 ++++++++--------=0A=
 1 files changed, 8 insertions(+), 8 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/arb_program_shader.c =
b/dlls/wined3d/arb_program_shader.c=0A=
index 86faaf2..616c12e 100644=0A=
--- a/dlls/wined3d/arb_program_shader.c=0A=
+++ b/dlls/wined3d/arb_program_shader.c=0A=
@@ -645,15 +645,15 @@ static void gen_color_correction(SHADER_BUFFER =
*buffer, const char *reg, const c=0A=
         case WINED3DFMT_V16U16:=0A=
             if(GL_SUPPORT(NV_TEXTURE_SHADER) ||=0A=
               (GL_SUPPORT(ATI_ENVMAP_BUMPMAP) && fmt =3D=3D =
WINED3DFMT_V8U8)) {=0A=
-#if 0=0A=
-                /* The 3rd channel returns 1.0 in d3d, but 0.0 in gl. =
Fix this while we're at it :-)=0A=
-                 * disabled until an application that needs it is found =
because it causes unneeded=0A=
-                 * shader recompilation in some game=0A=
-                 */=0A=
-                if(strlen(writemask) >=3D 4) {=0A=
-                    shader_addline(buffer, "MOV %s.%c, %s;\n", reg, =
one);=0A=
+                if(0) {=0A=
+                    /* The 3rd channel returns 1.0 in d3d, but 0.0 in =
gl. Fix this while we're at it :-)=0A=
+                     * disabled until an application that needs it is =
found because it causes unneeded=0A=
+                     * shader recompilation in some game=0A=
+                     */=0A=
+                    if(strlen(writemask) >=3D 4) {=0A=
+                        shader_addline(buffer, "MOV %s.%c, %s;\n", reg, =
writemask[3], one);=0A=
+                    }=0A=
                 }=0A=
-#endif=0A=
             } else {=0A=
                 /* Correct the sign, but leave the blue as it is - it =
was loaded correctly already=0A=
                  * ARB shaders are a bit picky wrt writemasks and =
swizzles. If we're free to scale=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0001_01C90843.F9D70860--




More information about the wine-patches mailing list