Qt5OpenGL: use OpenGL debug logger to locate problems, fix a couple of errors

This commit is contained in:
wmayer
2017-03-14 00:02:37 +01:00
parent 79f961ee9c
commit 764f9ce7e5
8 changed files with 29 additions and 30 deletions

View File

@@ -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();
}
}