diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 15:41:16 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 15:48:15 (GMT) |
commit | e614e3548bbe505c75e8b3a54f44f07522a6ecf5 (patch) | |
tree | 9b9a6515416a94434e346ec548e002fb6e11e96b /src/opengl/qgl_p.h | |
parent | 03daf059647c0a0222e8774b0a083f58c8e64934 (diff) | |
download | Qt-e614e3548bbe505c75e8b3a54f44f07522a6ecf5.zip Qt-e614e3548bbe505c75e8b3a54f44f07522a6ecf5.tar.gz Qt-e614e3548bbe505c75e8b3a54f44f07522a6ecf5.tar.bz2 |
Add and use QGLContextPrivate::eglSurfaceForDevice()
The QGLContext only stores the EGLSurface for QWidgets & QGLWidgets,
other device types like QPixmap & QGLPixelBuffer store the surface
themsselves. With this patch it is possible to create a QGLContext
on a QPixmap, make it current and render GL to that QPixmap on X11.
Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index ecd8b43..b828bea 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -356,6 +356,7 @@ public: QEglContext *eglContext; EGLSurface eglSurface; void destroyEglSurfaceForDevice(); + EGLSurface eglSurfaceForDevice() const; #elif defined(Q_WS_X11) || defined(Q_WS_MAC) void* cx; #endif |