From 0e737235a86c12c5291973b4d2286b7fe148ab23 Mon Sep 17 00:00:00 2001 From: Rodolfo Osvaldo Bogado Date: Mon, 27 Dec 2010 10:49:14 +0000 Subject: [PATCH] little fix for my last commit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6666 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp index 07c210d98f..1640efda94 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureConverter.cpp @@ -64,13 +64,13 @@ void CreateRgbToYuyvProgram() "void main(\n" " out float4 ocol0 : COLOR0,\n" " in float2 uv0 : TEXCOORD0,\n" - " in float uv1 : TEXCOORD1)\n" + " in float uv2 : TEXCOORD1)\n" "{\n" " float2 uv1 = float2((uv0.x + 1.0f)/ blkDims.z, uv0.y / blkDims.w);\n" " float3 c0 = tex2D(samp0, uv0.xy / blkDims.zw).rgb;\n" " float3 c1 = tex2D(samp0, uv1).rgb;\n" - " c0 = pow(c0,uv1.xxx);\n" - " c1 = pow(c1,uv1.xxx);\n" + " c0 = pow(c0,uv2.xxx);\n" + " c1 = pow(c1,uv2.xxx);\n" " float3 y_const = float3(0.257f,0.504f,0.098f);\n" " float3 u_const = float3(-0.148f,-0.291f,0.439f);\n" " float3 v_const = float3(0.439f,-0.368f,-0.071f);\n"