aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/GL
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2017-10-02 05:08:03 +0200
committerRainer Hochecker <fernetmenta@online.de>2017-10-05 18:06:36 +0200
commitf3adf5f5c2136a538893f9f29bbe2e384d3b11ed (patch)
tree4bae47d94ab27a142fa599522e89a2b3e2f77d50 /system/shaders/GL
parentfb001182895d50ccf0270fc374c0beda5fb8a306 (diff)
VP: fix VTB (OSX) after OpenGL migration
Diffstat (limited to 'system/shaders/GL')
-rw-r--r--system/shaders/GL/1.5/gl_yuv2rgb_basic.glsl10
1 files changed, 1 insertions, 9 deletions
diff --git a/system/shaders/GL/1.5/gl_yuv2rgb_basic.glsl b/system/shaders/GL/1.5/gl_yuv2rgb_basic.glsl
index 6b9f9b4161..a9c37dd486 100644
--- a/system/shaders/GL/1.5/gl_yuv2rgb_basic.glsl
+++ b/system/shaders/GL/1.5/gl_yuv2rgb_basic.glsl
@@ -1,7 +1,6 @@
#version 150
#if(XBMC_texture_rectangle)
-# extension GL_ARB_texture_rectangle : enable
# define texture2D texture2DRect
# define sampler2D sampler2DRect
#endif
@@ -57,21 +56,14 @@ vec4 process()
, texture(m_sampV, stretch(m_cordV)).g
, 1.0 );
rgb = m_yuvmat * yuv;
- rgb.a = gl_Color.a;
+ rgb.a = fragColor.a;
#elif defined(XBMC_YUY2) || defined(XBMC_UYVY)
-#if(XBMC_texture_rectangle)
- vec2 stepxy = vec2(1.0, 1.0);
- vec2 pos = stretch(m_cordY);
- pos = vec2(pos.x - 0.25, pos.y);
- vec2 f = fract(pos);
-#else
vec2 stepxy = m_step;
vec2 pos = stretch(m_cordY);
pos = vec2(pos.x - stepxy.x * 0.25, pos.y);
vec2 f = fract(pos / stepxy);
-#endif
//y axis will be correctly interpolated by opengl
//x axis will not, so we grab two pixels at the center of two columns and interpolate ourselves