diff --git a/src/common/detail/clglcontext.cpp b/src/common/detail/clglcontext.cpp index 4411189e7..8c5b94b7d 100644 --- a/src/common/detail/clglcontext.cpp +++ b/src/common/detail/clglcontext.cpp @@ -67,6 +67,7 @@ CLExecContext_t& CLGLContext::getCLExecContext() { #endif void CLGLContext::blitFrameBufferToScreen(const cv::Rect& viewport, const cv::Size& windowSize, bool stretch) { + cerr << viewport << " " << windowSize << endl; GL_CHECK(glBindFramebuffer(GL_READ_FRAMEBUFFER, frameBufferID_)); GL_CHECK(glReadBuffer(GL_COLOR_ATTACHMENT0)); GL_CHECK(glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0)); 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_);