equal
deleted
inserted
replaced
196 } |
196 } |
197 |
197 |
198 // Get the display and initialize it. |
198 // Get the display and initialize it. |
199 d->eglContext = new QEglContext(); |
199 d->eglContext = new QEglContext(); |
200 d->eglContext->setApi(QEgl::OpenGL); |
200 d->eglContext->setApi(QEgl::OpenGL); |
201 if (!d->eglContext->openDisplay(device())) { |
|
202 delete d->eglContext; |
|
203 d->eglContext = 0; |
|
204 return false; |
|
205 } |
|
206 |
201 |
207 // Construct the configuration we need for this surface. |
202 // Construct the configuration we need for this surface. |
208 QEglProperties configProps; |
203 QEglProperties configProps; |
209 qt_egl_add_platform_config(configProps, device()); |
204 qt_egl_add_platform_config(configProps, device()); |
210 qt_egl_set_format(configProps, devType, d->glFormat); |
205 qt_egl_set_format(configProps, devType, d->glFormat); |