Skip to content

Commit

Permalink
Don't try to render widgets wth invalid size
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 4, 2018
1 parent 8e747ec commit 5f3b6e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dgl/src/WidgetPrivateData.hpp
Expand Up @@ -65,7 +65,7 @@ struct Widget::PrivateData {

void display(const uint width, const uint height)
{
if (skipDisplay || ! visible)
if (skipDisplay || size.isInvalid() || ! visible)
return;

bool needsDisableScissor = false;
Expand Down

0 comments on commit 5f3b6e5

Please sign in to comment.