fix viewer partial redrawing (#1921)

This commit is contained in:
shun-iwasawa 2018-05-07 16:01:59 +09:00 committed by masafumi-inoue
parent b266adeddf
commit 8f6c6d6c8a

View file

@ -928,7 +928,11 @@ void SceneViewer::drawEnableScissor() {
//-----------------------------------------------------------------------------
void SceneViewer::drawDisableScissor() {
if (!m_clipRect.isEmpty() && !m_draw3DMode) glDisable(GL_SCISSOR_TEST);
if (!m_clipRect.isEmpty() && !m_draw3DMode) {
glDisable(GL_SCISSOR_TEST);
// clear the clipping rect
m_clipRect.empty();
}
}
//-----------------------------------------------------------------------------