diff --git a/src/common/viz2d.cpp b/src/common/viz2d.cpp index afbd91d3e..17b5988a8 100644 --- a/src/common/viz2d.cpp +++ b/src/common/viz2d.cpp @@ -757,7 +757,7 @@ bool Viz2D::display() { makeCurrent(); glfwPollEvents(); screen().draw_contents(); - clglContext_->blitFrameBufferToScreen(getViewport(), getWindowSize(), isStretching()); + clglContext_->blitFrameBufferToScreen(getViewport(), getInitialSize(), isStretching()); screen().draw_widgets(); glfwSwapBuffers(glfwWindow_); result = !glfwWindowShouldClose(glfwWindow_);