diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-19 12:45:02 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-22 14:33:02 (GMT) |
commit | e602ea2a7eee7ec427ba3faa7c450a29a75fb98b (patch) | |
tree | ddeed223ca0472aced7fd2fa518cd2bac5bb2afb /src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | |
parent | d7b4d694214d1dd8ef84ac2ae69c94b8564fd8d7 (diff) | |
download | Qt-e602ea2a7eee7ec427ba3faa7c450a29a75fb98b.zip Qt-e602ea2a7eee7ec427ba3faa7c450a29a75fb98b.tar.gz Qt-e602ea2a7eee7ec427ba3faa7c450a29a75fb98b.tar.bz2 |
Remove dead code left after a merge conflict resolution
Reviewed-By: Kim
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 955a129..8460430 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -1807,27 +1807,6 @@ bool QGL2PaintEngineEx::begin(QPaintDevice *pdev) d->dirtyStencilRegion = QRect(0, 0, d->width, d->height); d->stencilClean = true; - switch (pdev->devType()) { - case QInternal::Pixmap: - d->deviceHasAlpha = static_cast<QPixmap *>(pdev)->hasAlphaChannel(); - break; - case QInternal::FramebufferObject: - { - GLenum f = static_cast<QGLFramebufferObject *>(pdev)->format().internalTextureFormat(); -#ifndef QT_OPENGL_ES - d->deviceHasAlpha = (f != GL_RGB && f != GL_RGB5 && f != GL_RGB8); -#else - d->deviceHasAlpha = (f == GL_RGBA); -#endif - } - break; - default: - // widget, pbuffer - d->deviceHasAlpha = d->ctx->d_func()->reqFormat.alpha(); - break; - } - - // Calling begin paint should make the correct context current. So, any // code which calls into GL or otherwise needs a current context *must* // go after beginPaint: |