Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix brightness

  • Loading branch information...
commit 369711ba86641ce8fd0d4c1010da538e4acd2adf 1 parent 39c12bf
@koying authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
View
4 xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
@@ -1363,8 +1363,8 @@ void CLinuxRendererGLES::RenderEglImage(int index, int field)
tex[1][0] = tex[2][0] = 1;
tex[2][1] = tex[3][1] = 0;
- glUniform1f(brightLoc, g_settings.m_currentVideoSettings.m_Brightness * 0.01f - 0.5f);
- glUniform1f(contlLoc, g_settings.m_currentVideoSettings.m_Contrast * 0.02f);
+ glUniform1f(brightLoc, CMediaSettings::Get().GetCurrentVideoSettings().m_Brightness * 0.01f - 0.5f);
+ glUniform1f(contlLoc, CMediaSettings::Get().GetCurrentVideoSettings().m_Contrast * 0.02f);
glUniform4fv(avglumLoc, 1, avglum);
glDrawElements(GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_BYTE, idx);
Please sign in to comment.
Something went wrong with that request. Please try again.