Skip to content

Commit

Permalink
projectm: retain viewport set during render
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Aug 1, 2013
1 parent 60e198a commit 0495c34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/visualizations/XBMCProjectM/libprojectM/Renderer.cpp
Expand Up @@ -132,6 +132,8 @@ void Renderer::RenderFrame(PresetOutputs *presetOutputs, PresetInputs *presetInp
glPushMatrix();
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
GLint viewport[4];
glGetIntegerv(GL_VIEWPORT, viewport);

totalframes++;

Expand Down Expand Up @@ -228,7 +230,7 @@ void Renderer::RenderFrame(PresetOutputs *presetOutputs, PresetInputs *presetInp
}
else
#endif
glViewport( vx, vy, this->vw + vx, this->vh + vy );
glViewport( viewport[0], viewport[1], viewport[2], viewport[3] );



Expand Down

0 comments on commit 0495c34

Please sign in to comment.