[PATCH 4/5] wined3d: Fix ARB_0001 with pixel shaders in arb_get_helper_value().

Henri Verbeet hverbeet at codeweavers.com
Sun Apr 3 16:35:32 CDT 2011


In practice ARB_0001 is never used with pixel shaders, but it's still broken.
---
 dlls/wined3d/arb_program_shader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index a8c3e2e..45e5ab1 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -104,7 +104,7 @@ static const char *arb_get_helper_value(enum wined3d_shader_type shader, enum ar
             case ARB_ZERO: return "ps_helper_const.x";
             case ARB_ONE: return "ps_helper_const.y";
             case ARB_TWO: return "coefmul.x";
-            case ARB_0001: return "helper_const.xxxy";
+            case ARB_0001: return "ps_helper_const.xxxy";
             case ARB_EPS: return "ps_helper_const.z";
             default: break;
         }
-- 
1.7.3.4




More information about the wine-patches mailing list