diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-24 16:26:11 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 08:24:25 (GMT) |
commit | a2eddea1432d6e558dcd620cd5100ce4531975e8 (patch) | |
tree | 32c429c466e08b248ba182935be0b88d9a461ad0 /src/opengl/qgl_wince.cpp | |
parent | ebdfa7270f67e4ce3b5034aa5144fdabeaecbbcd (diff) | |
download | Qt-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_wince.cpp')
-rw-r--r-- | src/opengl/qgl_wince.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/opengl/qgl_wince.cpp b/src/opengl/qgl_wince.cpp index 2b71201..ed8b4f7 100644 --- a/src/opengl/qgl_wince.cpp +++ b/src/opengl/qgl_wince.cpp @@ -122,16 +122,6 @@ QGLTemporaryContext::~QGLTemporaryContext() QGLFormat Win32/WGL-specific code *****************************************************************************/ -void qt_egl_add_platform_config(QEglProperties& props, QPaintDevice *device) -{ - int devType = device->devType(); - if (devType == QInternal::Image) - props.setPixelFormat(static_cast<QImage *>(device)->format()); - else - props.setPixelFormat(QImage::Format_RGB16); -} - - static bool opengl32dll = false; bool QGLFormat::hasOpenGLOverlays() @@ -159,8 +149,8 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) // Construct the configuration we need for this surface. QEglProperties configProps; - qt_egl_add_platform_config(configProps, device()); qt_egl_set_format(configProps, devType, d->glFormat); + configProps.setPaintDeviceFormat(device()); configProps.setRenderableType(QEgl::OpenGL); // Search for a matching configuration, reducing the complexity |