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/qpixmapdata_x11gl_egl.cpp

    r651 r769  
    9797            EGL_NONE
    9898        };
    99         qPixmapARGBSharedEglContext = eglCreateContext(QEglContext::defaultDisplay(0),
     99        qPixmapARGBSharedEglContext = eglCreateContext(QEglContext::d),
    100100                                                       argbConfig, 0, contextAttribs);
    101101
     
    104104            qPixmapRGBSharedEglContext = qPixmapARGBSharedEglContext;
    105105        } else {
    106             qPixmapRGBSharedEglContext = eglCreateContext(QEglContext::defaultDisplay(0),
     106            qPixmapRGBSharedEglContext = eglCreateContext(QEglContext::d),
    107107                                                           rgbConfig, 0, contextAttribs);
    108108        }
     
    115115            break;
    116116
    117         haveX11Pixmaps = eglMakeCurrent(QEglContext::defaultDisplay(0),
     117        haveX11Pixmaps = eglMakeCurrent(QEglContext::d),
    118118                                        (EGLSurface)argbPixmapData->gl_surface,
    119119                                        (EGLSurface)argbPixmapData->gl_surface,
     
    135135                break;
    136136
    137             haveX11Pixmaps = eglMakeCurrent(QEglContext::defaultDisplay(0),
     137            haveX11Pixmaps = eglMakeCurrent(QEglContext::d),
    138138                                            (EGLSurface)rgbPixmapData->gl_surface,
    139139                                            (EGLSurface)rgbPixmapData->gl_surface,
     
    148148
    149149    if (qPixmapARGBSharedEglContext || qPixmapRGBSharedEglContext) {
    150         eglMakeCurrent(QEglContext::defaultDisplay(0),
     150        eglMakeCurrent(QEglContext::d),
    151151                       EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
    152152    }
     
    168168        // Clean up the context(s) if we can't use X11GL pixmaps
    169169        if (qPixmapARGBSharedEglContext != EGL_NO_CONTEXT)
    170             eglDestroyContext(QEglContext::defaultDisplay(0), qPixmapARGBSharedEglContext);
     170            eglDestroyContext(QEglContext::d), qPixmapARGBSharedEglContext);
    171171
    172172        if (qPixmapRGBSharedEglContext != qPixmapARGBSharedEglContext &&
    173173            qPixmapRGBSharedEglContext != EGL_NO_CONTEXT)
    174174        {
    175             eglDestroyContext(QEglContext::defaultDisplay(0), qPixmapRGBSharedEglContext);
     175            eglDestroyContext(QEglContext::d), qPixmapRGBSharedEglContext);
    176176        }
    177177        qPixmapRGBSharedEglContext = EGL_NO_CONTEXT;
     
    213213        if (ctx->d_func()->eglContext == 0)
    214214            ctx->d_func()->eglContext = new QEglContext();
    215         ctx->d_func()->eglContext->openDisplay(0); // ;-)
    216215        ctx->d_func()->eglContext->setApi(QEgl::OpenGL);
    217216        ctx->d_func()->eglContext->setContext(hasAlphaChannel() ? qPixmapARGBSharedEglContext
Note: See TracChangeset for help on using the changeset viewer.