src/opengl/qglframebufferobject.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
--- a/src/opengl/qglframebufferobject.cpp	Mon Mar 15 12:43:09 2010 +0200
+++ b/src/opengl/qglframebufferobject.cpp	Thu Apr 08 14:19:33 2010 +0300
@@ -329,6 +329,13 @@
     } else if (attachment == QGLFramebufferObject::Depth) {
         fboFormat.setDepth(true);
     }
+
+    GLenum format = f->format().internalTextureFormat();
+    reqAlpha = (format != GL_RGB
+#ifndef QT_OPENGL_ES
+                && format != GL_RGB5 && format != GL_RGB8
+#endif
+    );
 }
 
 QGLContext *QGLFBOGLPaintDevice::context() const