Skip to content

Commit

Permalink
Merge pull request xbmc#6363 from koying/fixdeintamc
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Feb 15, 2015
2 parents 3a2a417 + e66ec4b commit 9219849
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1609,10 +1609,11 @@ void CLinuxRendererGLES::RenderSurfaceTexture(int index, int field)
GLint fieldLoc = g_Windowing.GUIShaderGetField();
GLint stepLoc = g_Windowing.GUIShaderGetStep();

// Y is inverted, so invert fields
if (field == FIELD_TOP)
glUniform1i(fieldLoc, 1);
else if(field == FIELD_BOT)
glUniform1i(fieldLoc, 0);
else if(field == FIELD_BOT)
glUniform1i(fieldLoc, 1);
glUniform1f(stepLoc, 1.0f / (float)plane.texheight);
}
else
Expand Down

0 comments on commit 9219849

Please sign in to comment.