pull/3471/head
kallaballa 2 years ago
parent 33099f65ef
commit 0287eb3ef5
  1. 1
      src/common/detail/clglcontext.cpp
  2. 2
      src/common/viz2d.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));

@ -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_);

Loading…
Cancel
Save