From 0287eb3ef50345b2006280da63a4e7117dca5db9 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Sat, 18 Feb 2023 16:05:48 +0100 Subject: [PATCH] stash --- src/common/detail/clglcontext.cpp | 1 + src/common/viz2d.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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_);