Disabling the framebuffer blit of output rendering

Blit of framebuffer is incompatible with the new features of Display View to adjust whitebalance and geometry of rendered frame on output windows.
This commit is contained in:
Bruno Herbelin
2023-02-28 00:23:54 +01:00
parent f9e99e2a33
commit 93f433f388
5 changed files with 5 additions and 74 deletions

View File

@@ -182,11 +182,8 @@ void RenderView::drawThumbnail()
frame_thumbnail_ = new FrameBuffer( res_thumbnail );
// render
if (Settings::application.render.blit) {
if ( !frame_buffer_->blit(frame_thumbnail_) )
throw std::runtime_error("no blit");
}
else {
if ( !frame_buffer_->blit(frame_thumbnail_) ){
// render anyway if blit failed
FrameBufferSurface *thumb = new FrameBufferSurface(frame_buffer_);
frame_thumbnail_->begin();
thumb->draw(glm::identity<glm::mat4>(), frame_thumbnail_->projection());