Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/qgl_x11egl.cpp

    r651 r769  
    191191        d->eglContext = new QEglContext();
    192192        d->eglContext->setApi(QEgl::OpenGL);
    193         if (!d->eglContext->openDisplay(device())) {
    194             delete d->eglContext;
    195             d->eglContext = 0;
    196             return false;
    197         }
    198193
    199194        // Construct the configuration we need for this surface.
     
    615610        EGLint configCount = 0;
    616611        do {
    617             eglChooseConfig(QEglContext::defaultDisplay(0), configAttribs.properties(), targetConfig, 1, &configCount);
     612            eglChooseConfig(QEglContext::d), configAttribs.properties(), targetConfig, 1, &configCount);
    618613            if (configCount > 0) {
    619614                // Got one
     
    654649
    655650    EGLSurface pixmapSurface;
    656     pixmapSurface = eglCreatePixmapSurface(QEglContext::defaultDisplay(0),
     651    pixmapSurface = eglCreatePixmapSurface(QEglContext::d),
    657652                                           pixmapConfig,
    658653                                           (EGLNativePixmapType) pixmapData->handle(),
     
    763758    if (pixmapData->gl_surface) {
    764759        EGLBoolean success;
    765         success = eglDestroySurface(QEglContext::defaultDisplay(0), (EGLSurface)pixmapData->gl_surface);
     760        success = eglDestroySurface(QEglContext::d), (EGLSurface)pixmapData->gl_surface);
    766761        if (success == EGL_FALSE) {
    767762            qWarning() << "destroyGlSurfaceForPixmap() - Error deleting surface: "
     
    778773    if (pixmapData->gl_surface) {
    779774        EGLBoolean success;
    780         success = eglReleaseTexImage(QEglContext::defaultDisplay(0),
     775        success = eglReleaseTexImage(QEglContext::d),
    781776                                     (EGLSurface)pixmapData->gl_surface,
    782777                                     EGL_BACK_BUFFER);
Note: See TracChangeset for help on using the changeset viewer.