summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_x11egl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-02-24 16:26:11 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-02 08:24:25 (GMT)
commita2eddea1432d6e558dcd620cd5100ce4531975e8 (patch)
tree32c429c466e08b248ba182935be0b88d9a461ad0 /src/opengl/qgl_x11egl.cpp
parentebdfa7270f67e4ce3b5034aa5144fdabeaecbbcd (diff)
downloadQt-a2eddea1432d6e558dcd620cd5100ce4531975e8.zip
Qt-a2eddea1432d6e558dcd620cd5100ce4531975e8.tar.gz
Qt-a2eddea1432d6e558dcd620cd5100ce4531975e8.tar.bz2
Replace qt_egl_add_platform_config with existing QEglProperties API
QEglProperties::setPaintDeviceFormat() seems to be a copy & paste of qt_egl_add_platform_config for every platform anyway. Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl/qgl_x11egl.cpp')
-rw-r--r--src/opengl/qgl_x11egl.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/opengl/qgl_x11egl.cpp b/src/opengl/qgl_x11egl.cpp
index ff58fba..21ddfe3 100644
--- a/src/opengl/qgl_x11egl.cpp
+++ b/src/opengl/qgl_x11egl.cpp
@@ -154,12 +154,6 @@ bool QGLFormat::hasOpenGLOverlays()
return false;
}
-void qt_egl_add_platform_config(QEglProperties& props, QPaintDevice *device)
-{
- if (device->devType() == QInternal::Image)
- props.setPixelFormat(static_cast<QImage *>(device)->format());
-}
-
// Chooses the EGL config and creates the EGL context
bool QGLContext::chooseContext(const QGLContext* shareContext)
{
@@ -178,7 +172,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext)
// Construct the configuration we need for this surface.
QEglProperties configProps;
qt_egl_set_format(configProps, devType, d->glFormat);
- qt_egl_add_platform_config(configProps, device());
+ configProps.setPaintDeviceFormat(device());
configProps.setRenderableType(QEgl::OpenGL);
#if We_have_an_EGL_library_which_bothers_to_check_EGL_BUFFER_SIZE