Permalink
Browse files

fixed: vis control rendering was off due to setting invalid viewports

  • Loading branch information...
1 parent a92abc1 commit 0a869bd0c07f9e47cfce654edb520c4bc49134fc Jonathan Marshall committed with theuni Jun 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 xbmc/rendering/gl/RenderSystemGL.cpp
  2. +1 −1 xbmc/rendering/gles/RenderSystemGLES.cpp
@@ -525,7 +525,7 @@ void CRenderSystemGL::GetViewPort(CRect& viewPort)
return;
GLint glvp[4];
- glGetIntegerv(GL_SCISSOR_BOX, glvp);
+ glGetIntegerv(GL_VIEWPORT, glvp);
viewPort.x1 = glvp[0];
viewPort.y1 = m_height - glvp[1] - glvp[3];
@@ -475,7 +475,7 @@ void CRenderSystemGLES::GetViewPort(CRect& viewPort)
return;
GLint glvp[4];
- glGetIntegerv(GL_SCISSOR_BOX, glvp);
+ glGetIntegerv(GL_VIEWPORT, glvp);
viewPort.x1 = glvp[0];
viewPort.y1 = m_height - glvp[1] - glvp[3];

0 comments on commit 0a869bd

Please sign in to comment.