diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-12 14:50:49 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-12 16:03:16 (GMT) |
commit | af1f28a0d78deee31c5df0d7d042ae7671c8c34c (patch) | |
tree | e42d9effcddda6289afbeb4d9817db68467ce308 /src/opengl/qglpixelbuffer_egl.cpp | |
parent | 040151b51780084f3a2b764bab7e2359677eb0b1 (diff) | |
download | Qt-af1f28a0d78deee31c5df0d7d042ae7671c8c34c.zip Qt-af1f28a0d78deee31c5df0d7d042ae7671c8c34c.tar.gz Qt-af1f28a0d78deee31c5df0d7d042ae7671c8c34c.tar.bz2 |
Cleanup QEglContext & EGLDisplays
This basicaly replaces display(), openDisplay() & defaultDisplay()
methods with a single display() and nativeDisplay(), the latter
being implemented in the platform-specific files and everything
else being cross-platform code.
Reviewed-By: Trond
Diffstat (limited to 'src/opengl/qglpixelbuffer_egl.cpp')
-rw-r--r-- | src/opengl/qglpixelbuffer_egl.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp index ca19011..dbe919d 100644 --- a/src/opengl/qglpixelbuffer_egl.cpp +++ b/src/opengl/qglpixelbuffer_egl.cpp @@ -65,13 +65,6 @@ bool QGLPixelBufferPrivate::init(const QSize &size, const QGLFormat &f, QGLWidge ctx = new QEglContext(); ctx->setApi(QEgl::OpenGL); - // Open the EGL display. - if (!ctx->openDisplay(0)) { - delete ctx; - ctx = 0; - return false; - } - // Find the shared context. QEglContext *shareContext = 0; if (shareWidget && shareWidget->d_func()->glcx) @@ -215,7 +208,7 @@ GLuint QGLPixelBuffer::generateDynamicTexture() const bool QGLPixelBuffer::hasOpenGLPbuffers() { // See if we have at least 1 configuration that matches the default format. - EGLDisplay dpy = QEglContext::defaultDisplay(0); + EGLDisplay dpy = QEglContext::display(); if (dpy == EGL_NO_DISPLAY) return false; QEglProperties configProps; |