Changeset 846 for trunk/src/opengl/qgl_wince.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qgl_wince.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 55 55 #include <windows.h> 56 56 57 #include <private/qegl_p.h> 57 #include <private/qeglproperties_p.h> 58 #include <private/qeglcontext_p.h> 58 59 #include <private/qgl_egl_p.h> 59 #include <private/qgl_cl_p.h>60 60 61 61 … … 121 121 QGLFormat Win32/WGL-specific code 122 122 *****************************************************************************/ 123 124 void qt_egl_add_platform_config(QEglProperties& props, QPaintDevice *device)125 {126 int devType = device->devType();127 if (devType == QInternal::Image)128 props.setPixelFormat(static_cast<QImage *>(device)->format());129 else130 props.setPixelFormat(QImage::Format_RGB16);131 }132 133 123 134 124 static bool opengl32dll = false; … … 155 145 // Get the display and initialize it. 156 146 d->eglContext = new QEglContext(); 147 d->ownsEglContext = true; 157 148 d->eglContext->setApi(QEgl::OpenGL); 158 149 159 150 // Construct the configuration we need for this surface. 160 151 QEglProperties configProps; 161 qt_egl_add_platform_config(configProps, device()); 162 qt_egl_set_format(configProps, devType, d->glFormat); 152 qt_eglproperties_set_glformat(configProps, d->glFormat); 153 configProps.setDeviceType(devType); 154 configProps.setPaintDeviceFormat(device()); 163 155 configProps.setRenderableType(QEgl::OpenGL); 164 156 … … 172 164 173 165 // Inform the higher layers about the actual format properties. 174 qt_ egl_update_format(*(d->eglContext), d->glFormat);166 qt_glformat_from_eglconfig(d->glFormat, d->eglContext->config()); 175 167 176 168 // Create a new context for the configuration.
Note:
See TracChangeset
for help on using the changeset viewer.