aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/yuv2rgb_basic_rect.arb
diff options
context:
space:
mode:
authorbobo1on1 <bobo1on1@svn>2010-01-29 22:35:50 +0000
committerbobo1on1 <bobo1on1@svn>2010-01-29 22:35:50 +0000
commit1ac36123e4f2aab5ab1609b4dbedcd797b38bbd3 (patch)
treeebdbf5deecc3f9d3bb7f35386103f59903061674 /system/shaders/yuv2rgb_basic_rect.arb
parentc8bad273373a5337432609309208b8859f66c3af (diff)
changed: always use the alpha component of the V plane, and for nv12 bind the UV texture to GL_TEXTURE1 and GL_TEXTURE2, this way yv12 and nv12 can be rendered with the same shaders
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27285 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'system/shaders/yuv2rgb_basic_rect.arb')
-rw-r--r--system/shaders/yuv2rgb_basic_rect.arb3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/shaders/yuv2rgb_basic_rect.arb b/system/shaders/yuv2rgb_basic_rect.arb
index 82588a0080..b202d40e93 100644
--- a/system/shaders/yuv2rgb_basic_rect.arb
+++ b/system/shaders/yuv2rgb_basic_rect.arb
@@ -4,7 +4,8 @@ TEMP R0;
TEMP R1;
TEX R0.x, fragment.texcoord[0], texture[0], RECT;
TEX R0.y, fragment.texcoord[1], texture[1], RECT;
-TEX R0.z, fragment.texcoord[2], texture[2], RECT;
+TEX R0.w, fragment.texcoord[2], texture[2], RECT;
+MOV R0.z, R0.w;
DPH R1.r, R0, yuvmat[0];
DPH R1.g, R0, yuvmat[1];
DPH R1.b, R0, yuvmat[2];