Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
[ios/atv2] - fix compilation after 6744b62
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed Oct 28, 2011
1 parent b4cf3cf commit 5c7873a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xbmc/rendering/gles/RenderSystemGLES.cpp
Expand Up @@ -396,13 +396,16 @@ void CRenderSystemGLES::SetCameraPosition(const CPoint &camera, int screenWidth,
g_matrices.MatrixMode(MM_MODELVIEW);

glGetIntegerv(GL_VIEWPORT, m_viewPort);
glGetFloatv(GL_MODELVIEW_MATRIX, m_view);
glGetFloatv(GL_PROJECTION_MATRIX, m_projection);
GLfloat* matx;
matx = g_matrices.GetMatrix(MM_MODELVIEW);
memcpy(m_view, matx, 16 * sizeof(GLfloat));
matx = g_matrices.GetMatrix(MM_PROJECTION);
memcpy(m_projection, matx, 16 * sizeof(GLfloat));

g_graphicsContext.EndPaint();
}

void CRenderSystemGLES::Platform(float &x, float &y, float &z)
void CRenderSystemGLES::Project(float &x, float &y, float &z)
{
GLfloat coordX, coordY, coordZ;
if (g_matrices.Project(x, y, z, m_view, m_projection, m_viewPort, &coordX, &coordY, &coordZ))
Expand Down

0 comments on commit 5c7873a

Please sign in to comment.