wined3d: Replace an #if 0 with if(0).

This commit is contained in:
Stefan Dösinger 2008-08-21 13:30:57 -05:00 committed by Alexandre Julliard
parent 8c5c913fc0
commit 005e5e868e
1 changed files with 8 additions and 8 deletions

View File

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