diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-01 11:59:34 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 08:24:25 (GMT) |
commit | f936cc4e2a7b377981a626b1d45dbbb1c1df1cb8 (patch) | |
tree | 2947cac05c037279c92563d99f1362c141760e7a /src/opengl/qglpixelbuffer_egl.cpp | |
parent | a2eddea1432d6e558dcd620cd5100ce4531975e8 (diff) | |
download | Qt-f936cc4e2a7b377981a626b1d45dbbb1c1df1cb8.zip Qt-f936cc4e2a7b377981a626b1d45dbbb1c1df1cb8.tar.gz Qt-f936cc4e2a7b377981a626b1d45dbbb1c1df1cb8.tar.bz2 |
Move EGL surface type setting to new QEglProperties::setDeviceType
Also renamed qt_egl_set_format->qt_eglproperties_set_glformat
Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl/qglpixelbuffer_egl.cpp')
-rw-r--r-- | src/opengl/qglpixelbuffer_egl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opengl/qglpixelbuffer_egl.cpp b/src/opengl/qglpixelbuffer_egl.cpp index cee5a1f..ee0714f 100644 --- a/src/opengl/qglpixelbuffer_egl.cpp +++ b/src/opengl/qglpixelbuffer_egl.cpp @@ -82,7 +82,8 @@ bool QGLPixelBufferPrivate::init(const QSize &size, const QGLFormat &f, QGLWidge #endif } else { QEglProperties configProps; - qt_egl_set_format(configProps, QInternal::Pbuffer, f); + qt_eglproperties_set_glformat(configProps, f); + configProps.setDeviceType(QInternal::Pbuffer); configProps.setRenderableType(ctx->api()); bool ok = false; #if QGL_RENDER_TEXTURE @@ -208,7 +209,8 @@ bool QGLPixelBuffer::hasOpenGLPbuffers() if (dpy == EGL_NO_DISPLAY) return false; QEglProperties configProps; - qt_egl_set_format(configProps, QInternal::Pbuffer, QGLFormat::defaultFormat()); + qt_eglproperties_set_glformat(configProps, QGLFormat::defaultFormat()); + configProps.setDeviceType(QInternal::Pbuffer); configProps.setRenderableType(QEgl::OpenGL); do { EGLConfig cfg = 0; |