diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-10-22 10:17:56 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-10-22 15:43:43 (GMT) |
commit | 9d81ddd3da51166a9fc92073cf7ba508cdd22dd1 (patch) | |
tree | ce8986e23ca8f6ec5f520a10222785b478a30343 /src/opengl/qgl_egl.cpp | |
parent | 98824c2ebe97f61bf294b0be07ac164aed470fbf (diff) | |
download | Qt-9d81ddd3da51166a9fc92073cf7ba508cdd22dd1.zip Qt-9d81ddd3da51166a9fc92073cf7ba508cdd22dd1.tar.gz Qt-9d81ddd3da51166a9fc92073cf7ba508cdd22dd1.tar.bz2 |
Added support for blitting to native child widgets in GL window surface.
Support blitting by copying from the top-level window's back buffer to
a temporary texture and then blitting from the texture to the native
child widget. Performance suffers, but it's better than failing.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/opengl/qgl_egl.cpp')
-rw-r--r-- | src/opengl/qgl_egl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp index c79c4cd..27f7ad9 100644 --- a/src/opengl/qgl_egl.cpp +++ b/src/opengl/qgl_egl.cpp @@ -276,12 +276,12 @@ EGLSurface QGLContextPrivate::eglSurfaceForDevice() const return eglSurface; } -void QGLContextPrivate::swapRegion(const QRegion *region) +void QGLContextPrivate::swapRegion(const QRegion ®ion) { if (!valid || !eglContext) return; - eglContext->swapBuffersRegion2NOK(eglSurfaceForDevice(), region); + eglContext->swapBuffersRegion2NOK(eglSurfaceForDevice(), ®ion); } void QGLWidget::setMouseTracking(bool enable) |