Changeset 769 for trunk/src/opengl/qpixmapdata_x11gl_egl.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qpixmapdata_x11gl_egl.cpp
r651 r769 97 97 EGL_NONE 98 98 }; 99 qPixmapARGBSharedEglContext = eglCreateContext(QEglContext::d efaultDisplay(0),99 qPixmapARGBSharedEglContext = eglCreateContext(QEglContext::d), 100 100 argbConfig, 0, contextAttribs); 101 101 … … 104 104 qPixmapRGBSharedEglContext = qPixmapARGBSharedEglContext; 105 105 } else { 106 qPixmapRGBSharedEglContext = eglCreateContext(QEglContext::d efaultDisplay(0),106 qPixmapRGBSharedEglContext = eglCreateContext(QEglContext::d), 107 107 rgbConfig, 0, contextAttribs); 108 108 } … … 115 115 break; 116 116 117 haveX11Pixmaps = eglMakeCurrent(QEglContext::d efaultDisplay(0),117 haveX11Pixmaps = eglMakeCurrent(QEglContext::d), 118 118 (EGLSurface)argbPixmapData->gl_surface, 119 119 (EGLSurface)argbPixmapData->gl_surface, … … 135 135 break; 136 136 137 haveX11Pixmaps = eglMakeCurrent(QEglContext::d efaultDisplay(0),137 haveX11Pixmaps = eglMakeCurrent(QEglContext::d), 138 138 (EGLSurface)rgbPixmapData->gl_surface, 139 139 (EGLSurface)rgbPixmapData->gl_surface, … … 148 148 149 149 if (qPixmapARGBSharedEglContext || qPixmapRGBSharedEglContext) { 150 eglMakeCurrent(QEglContext::d efaultDisplay(0),150 eglMakeCurrent(QEglContext::d), 151 151 EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 152 152 } … … 168 168 // Clean up the context(s) if we can't use X11GL pixmaps 169 169 if (qPixmapARGBSharedEglContext != EGL_NO_CONTEXT) 170 eglDestroyContext(QEglContext::d efaultDisplay(0), qPixmapARGBSharedEglContext);170 eglDestroyContext(QEglContext::d), qPixmapARGBSharedEglContext); 171 171 172 172 if (qPixmapRGBSharedEglContext != qPixmapARGBSharedEglContext && 173 173 qPixmapRGBSharedEglContext != EGL_NO_CONTEXT) 174 174 { 175 eglDestroyContext(QEglContext::d efaultDisplay(0), qPixmapRGBSharedEglContext);175 eglDestroyContext(QEglContext::d), qPixmapRGBSharedEglContext); 176 176 } 177 177 qPixmapRGBSharedEglContext = EGL_NO_CONTEXT; … … 213 213 if (ctx->d_func()->eglContext == 0) 214 214 ctx->d_func()->eglContext = new QEglContext(); 215 ctx->d_func()->eglContext->openDisplay(0); // ;-)216 215 ctx->d_func()->eglContext->setApi(QEgl::OpenGL); 217 216 ctx->d_func()->eglContext->setContext(hasAlphaChannel() ? qPixmapARGBSharedEglContext
Note:
See TracChangeset
for help on using the changeset viewer.