Skip to content

Commit

Permalink
GUI2/Canvas: don't skip drawing if canvas texture is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 11, 2017
1 parent 65c57fd commit 5fce25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/core/canvas.cpp
Expand Up @@ -1381,7 +1381,7 @@ canvas::~canvas()
void canvas::draw(const bool force)
{
log_scope2(log_gui_draw, "Canvas: drawing.");
if(!is_dirty_ && !force) {
if(!is_dirty_ && !force && !texture_.null()) {
DBG_GUI_D << "Canvas: nothing to draw.\n";
return;
}
Expand Down

0 comments on commit 5fce25a

Please sign in to comment.