Skip to content

Commit

Permalink
Fix exception when clearing empty m_model, for real this time.
Browse files Browse the repository at this point in the history
Signed-off-by: Khral Steelforge <[email protected]>
  • Loading branch information
kytulendu committed Nov 26, 2018
1 parent 156f07a commit b2f8962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PreviewGLCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ namespace gw2b {
}

void PreviewGLCanvas::clear( ) {
m_glRenderer->clear();
if ( m_glRenderer ) {
m_glRenderer->clear();
}

if ( m_reader ) {
deletePointer( m_reader );
Expand Down

0 comments on commit b2f8962

Please sign in to comment.