Skip to content

Commit

Permalink
FIX: [gles;amc;deint] invert fields because pic is inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Feb 8, 2015
1 parent 54b069d commit e66ec4b
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 e66ec4b

Please sign in to comment.