src/opengl/qglframebufferobject.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   327         fboFormat.setDepth(true);
   327         fboFormat.setDepth(true);
   328         fboFormat.setStencil(true);
   328         fboFormat.setStencil(true);
   329     } else if (attachment == QGLFramebufferObject::Depth) {
   329     } else if (attachment == QGLFramebufferObject::Depth) {
   330         fboFormat.setDepth(true);
   330         fboFormat.setDepth(true);
   331     }
   331     }
       
   332 
       
   333     GLenum format = f->format().internalTextureFormat();
       
   334     reqAlpha = (format != GL_RGB
       
   335 #ifndef QT_OPENGL_ES
       
   336                 && format != GL_RGB5 && format != GL_RGB8
       
   337 #endif
       
   338     );
   332 }
   339 }
   333 
   340 
   334 QGLContext *QGLFBOGLPaintDevice::context() const
   341 QGLContext *QGLFBOGLPaintDevice::context() const
   335 {
   342 {
   336     QGLContext *fboContext = const_cast<QGLContext *>(fbo->d_ptr->fbo_guard.context());
   343     QGLContext *fboContext = const_cast<QGLContext *>(fbo->d_ptr->fbo_guard.context());