Changeset 769 for trunk/src/opengl/qgl_x11egl.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/qgl_x11egl.cpp
r651 r769 191 191 d->eglContext = new QEglContext(); 192 192 d->eglContext->setApi(QEgl::OpenGL); 193 if (!d->eglContext->openDisplay(device())) {194 delete d->eglContext;195 d->eglContext = 0;196 return false;197 }198 193 199 194 // Construct the configuration we need for this surface. … … 615 610 EGLint configCount = 0; 616 611 do { 617 eglChooseConfig(QEglContext::d efaultDisplay(0), configAttribs.properties(), targetConfig, 1, &configCount);612 eglChooseConfig(QEglContext::d), configAttribs.properties(), targetConfig, 1, &configCount); 618 613 if (configCount > 0) { 619 614 // Got one … … 654 649 655 650 EGLSurface pixmapSurface; 656 pixmapSurface = eglCreatePixmapSurface(QEglContext::d efaultDisplay(0),651 pixmapSurface = eglCreatePixmapSurface(QEglContext::d), 657 652 pixmapConfig, 658 653 (EGLNativePixmapType) pixmapData->handle(), … … 763 758 if (pixmapData->gl_surface) { 764 759 EGLBoolean success; 765 success = eglDestroySurface(QEglContext::d efaultDisplay(0), (EGLSurface)pixmapData->gl_surface);760 success = eglDestroySurface(QEglContext::d), (EGLSurface)pixmapData->gl_surface); 766 761 if (success == EGL_FALSE) { 767 762 qWarning() << "destroyGlSurfaceForPixmap() - Error deleting surface: " … … 778 773 if (pixmapData->gl_surface) { 779 774 EGLBoolean success; 780 success = eglReleaseTexImage(QEglContext::d efaultDisplay(0),775 success = eglReleaseTexImage(QEglContext::d), 781 776 (EGLSurface)pixmapData->gl_surface, 782 777 EGL_BACK_BUFFER);
Note:
See TracChangeset
for help on using the changeset viewer.