diff options
Diffstat (limited to 'system/shaders')
-rw-r--r-- | system/shaders/output.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/shaders/output.glsl b/system/shaders/output.glsl index ecaa30d9da..c95c9488f2 100644 --- a/system/shaders/output.glsl +++ b/system/shaders/output.glsl @@ -9,8 +9,12 @@ void main() vec4 rgb = process(); #if defined(XBMC_FULLRANGE) +#if __VERSION__ <= 120 + rgb = (rgb-(16.0/255.0)) * 255.0/219.0; +#else rgb = clamp((rgb-(16.0/255.0)) * 255.0/219.0, 0, 1); #endif +#endif #if defined(XBMC_DITHER) vec2 ditherpos = gl_FragCoord.xy / m_dithersize; |