src/opengl/qgl_wince.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   153     }
   153     }
   154 
   154 
   155     // Get the display and initialize it.
   155     // Get the display and initialize it.
   156     d->eglContext = new QEglContext();
   156     d->eglContext = new QEglContext();
   157     d->eglContext->setApi(QEgl::OpenGL);
   157     d->eglContext->setApi(QEgl::OpenGL);
   158     if (!d->eglContext->openDisplay(device())) {
       
   159         delete d->eglContext;
       
   160         d->eglContext = 0;
       
   161         return false;
       
   162     }
       
   163 
   158 
   164     // Construct the configuration we need for this surface.
   159     // Construct the configuration we need for this surface.
   165     QEglProperties configProps;
   160     QEglProperties configProps;
   166     qt_egl_add_platform_config(configProps, device());
   161     qt_egl_add_platform_config(configProps, device());
   167     qt_egl_set_format(configProps, devType, d->glFormat);
   162     qt_egl_set_format(configProps, devType, d->glFormat);