Skip to content

Commit

Permalink
[squash][rendering] fix inverting of effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fedchin committed Aug 20, 2015
1 parent 68795f0 commit e7c62f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xbmc/rendering/dx/RenderSystemDX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ void CRenderSystemDX::SetCameraPosition(const CPoint &camera, int screenWidth, i
// position.
XMMATRIX flipY, translate;
flipY = XMMatrixScaling(1.0, -1.0f, 1.0f);
translate = XMMatrixTranslation(-(w + offset.x + stereoFactor), -(h + offset.y), 2 * h);
translate = XMMatrixTranslation(-(w + offset.x - stereoFactor), -(h + offset.y), 2 * h);
m_pGUIShader->SetView(XMMatrixMultiply(translate, flipY));

// projection onto screen space
Expand Down
2 changes: 1 addition & 1 deletion xbmc/rendering/gl/RenderSystemGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ void CRenderSystemGL::SetCameraPosition(const CPoint &camera, int screenWidth, i
float h = (float)m_viewPort[3]*0.5f;

glMatrixModview->LoadIdentity();
glMatrixModview->Translatef(-(w + offset.x + stereoFactor), +(h + offset.y), 0);
glMatrixModview->Translatef(-(w + offset.x - stereoFactor), +(h + offset.y), 0);
glMatrixModview->LookAt(0.0, 0.0, -2.0*h, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0);
glMatrixModview.Load();

Expand Down
2 changes: 1 addition & 1 deletion xbmc/rendering/gles/RenderSystemGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void CRenderSystemGLES::SetCameraPosition(const CPoint &camera, int screenWidth,
float h = (float)m_viewPort[3]*0.5f;

glMatrixModview->LoadIdentity();
glMatrixModview->Translatef(-(w + offset.x + stereoFactor), +(h + offset.y), 0);
glMatrixModview->Translatef(-(w + offset.x - stereoFactor), +(h + offset.y), 0);
glMatrixModview->LookAt(0.0, 0.0, -2.0*h, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0);
glMatrixModview.Load();

Expand Down

0 comments on commit e7c62f8

Please sign in to comment.