Qt5OpenGL: fix transparency issue with framebuffer objects with old OpenGL API

This commit is contained in:
wmayer
2017-03-12 22:34:00 +01:00
parent f13538a016
commit 79f961ee9c
4 changed files with 10 additions and 3 deletions

View File

@@ -588,6 +588,8 @@ void View3DInventor::previewFromFramebuffer(const QRect& rect, QImage& img)
format.setAttachment(QtGLFramebufferObject::Depth);
#if defined(HAVE_QT5_OPENGL)
format.setInternalTextureFormat(GL_RGB32F_ARB);
#else
format.setInternalTextureFormat(GL_RGB);
#endif
QtGLFramebufferObject fbo(rect.width(), rect.height(), format);
#else