Qt5OpenGL: use OpenGL debug logger to locate problems, fix a couple of errors
This commit is contained in:
@@ -147,6 +147,5 @@ void Thumbnail::createThumbnailFromFramebuffer(QImage& img) const
|
||||
QtGLFramebufferObject fbo(this->size, this->size, format);
|
||||
this->viewer->renderToFramebuffer(&fbo);
|
||||
img = fbo.toImage();
|
||||
static_cast<QtGLWidget*>(this->viewer->getGLWidget())->doneCurrent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user