Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 0a869bd0c07f9e47cfce654edb520c4bc49134fc 1 parent a92abc1
Jonathan Marshall authored theuni committed
View
2  xbmc/rendering/gl/RenderSystemGL.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];
View
2  xbmc/rendering/gles/RenderSystemGLES.cpp
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.