diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2018-02-06 17:52:28 +0100 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2018-02-07 15:46:56 +0100 |
commit | 2ee132e72167093b4551541e3ca4461bb36b5a21 (patch) | |
tree | 7ae2f9d5e9abfaee3ff212bbf6b64b2dfc31e004 | |
parent | c45a8bf7919173d3bc54d298dcc0cb31833e498b (diff) |
VideoPlayer: OpenGL - fix limited range fpr 10 > 8 bit
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConversionMatrix.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConversionMatrix.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConversionMatrix.cpp index 34971e5f87..371e3bc914 100644 --- a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConversionMatrix.cpp +++ b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConversionMatrix.cpp @@ -521,11 +521,6 @@ void CConvertMatrix::GetYuvMat(float (&mat)[4][4]) { float valScale = (235 - 16) / 255.0f; float valTrans = 16.0f / 255; - if (m_srcTextureBits > 8 && m_dstBits == 8) - { - valScale *= 256; - valTrans *= 256; - } CScale scale(valScale, valScale, valScale); CTranslate trans(valTrans, valTrans, valTrans); ret *= trans; |