Stefan Dösinger : wined3d: Store a positive 1. 0 in the ARB's vertex shader helper constant.

Alexandre Julliard julliard at winehq.org
Fri May 21 12:15:20 CDT 2010


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sat May 15 20:56:29 2010 +0200

wined3d: Store a positive 1.0 in the ARB's vertex shader helper constant.

---

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

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 57c5964..a6cafe7 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -3981,7 +3981,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
 
     shader_addline(buffer, "TEMP TMP_OUT;\n");
     if(need_helper_const(gl_info)) {
-        shader_addline(buffer, "PARAM helper_const = { 2.0, -1.0, %d.0, 0.0 };\n", This->rel_offset);
+        shader_addline(buffer, "PARAM helper_const = { 2.0, 1.0, %d.0, 0.0 };\n", This->rel_offset);
     }
     if(need_mova_const((IWineD3DBaseShader *) This, gl_info)) {
         shader_addline(buffer, "PARAM mova_const = { 0.5, 0.0, 2.0, 1.0 };\n");
@@ -4032,7 +4032,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
      */
     if (!gl_info->supported[NV_VERTEX_PROGRAM])
     {
-        shader_addline(buffer, "MOV result.color.secondary, -helper_const.wwwy;\n");
+        shader_addline(buffer, "MOV result.color.secondary, helper_const.wwwy;\n");
 
         if (gl_info->quirks & WINED3D_QUIRK_SET_TEXCOORD_W && !device->frag_pipe->ffp_proj_control)
         {
@@ -4040,7 +4040,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShaderImpl *This, struct
             for(i = 0; i < min(8, MAX_REG_TEXCRD); i++) {
                 if(This->baseShader.reg_maps.texcoord_mask[i] != 0 &&
                 This->baseShader.reg_maps.texcoord_mask[i] != WINED3DSP_WRITEMASK_ALL) {
-                    shader_addline(buffer, "MOV result.texcoord[%u].w, -helper_const.y;\n", i);
+                    shader_addline(buffer, "MOV result.texcoord[%u].w, helper_const.y;\n", i);
                 }
             }
         }




More information about the wine-cvs mailing list