summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl_egl.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-10-22 10:17:56 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-10-22 15:43:43 (GMT)
commit9d81ddd3da51166a9fc92073cf7ba508cdd22dd1 (patch)
treece8986e23ca8f6ec5f520a10222785b478a30343 /src/opengl/qgl_egl.cpp
parent98824c2ebe97f61bf294b0be07ac164aed470fbf (diff)
downloadQt-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.cpp4
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 &region)
{
if (!valid || !eglContext)
return;
- eglContext->swapBuffersRegion2NOK(eglSurfaceForDevice(), region);
+ eglContext->swapBuffersRegion2NOK(eglSurfaceForDevice(), &region);
}
void QGLWidget::setMouseTracking(bool enable)