fix viewer partial redrawing (#1921)
This commit is contained in:
parent
b266adeddf
commit
8f6c6d6c8a
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue