diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp index df825c79..5eecc74c 100644 --- a/dgl/src/WindowPrivateData.cpp +++ b/dgl/src/WindowPrivateData.cpp @@ -639,8 +639,7 @@ void Window::PrivateData::onPuglConfigure(const double width, const double heigh const uint uwidth = static_cast(width + 0.5); const uint uheight = static_cast(height + 0.5); - if (self != nullptr) - self->onReshape(uwidth, uheight); + self->onReshape(uwidth, uheight); #ifndef DPF_TEST_WINDOW_CPP if (topLevelWidget != nullptr)