equal
deleted
inserted
replaced
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()); |