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

@@ -589,6 +589,8 @@ SoQtOffscreenRenderer::makeFrameBuffer(int width, int height, int samples)
fmt.setAttachment(QtGLFramebufferObject::Depth);
#if defined(HAVE_QT5_OPENGL)
fmt.setInternalTextureFormat(GL_RGB32F_ARB);
#else
fmt.setInternalTextureFormat(GL_RGB);
#endif
#else
QtGLFramebufferObject::Attachment fmt;