src/opengl/qgl_qws.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   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);