summaryrefslogtreecommitdiffstats
path: root/src/opengl/qwindowsurface_gl_p.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-11-26 14:59:30 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-11-26 15:06:05 (GMT)
commit71abe300263d9f6bcd6e061e889a58111c48f92a (patch)
tree1d56f5244b8336de0b64e6e3131b8cedb514be6a /src/opengl/qwindowsurface_gl_p.h
parent896c51e4d41a7fee06a1601f1b25746f9f98be88 (diff)
downloadQt-71abe300263d9f6bcd6e061e889a58111c48f92a.zip
Qt-71abe300263d9f6bcd6e061e889a58111c48f92a.tar.gz
Qt-71abe300263d9f6bcd6e061e889a58111c48f92a.tar.bz2
Make QtOpenGL use shared contextexts on Lighthouse
Diffstat (limited to 'src/opengl/qwindowsurface_gl_p.h')
-rw-r--r--src/opengl/qwindowsurface_gl_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_gl_p.h b/src/opengl/qwindowsurface_gl_p.h
index 4f4ec92..22bd5f0 100644
--- a/src/opengl/qwindowsurface_gl_p.h
+++ b/src/opengl/qwindowsurface_gl_p.h
@@ -66,8 +66,12 @@ class QRegion;
class QWidget;
struct QGLWindowSurfacePrivate;
+#ifdef Q_WS_QPA
+Q_OPENGL_EXPORT const QGLContext* qt_gl_share_context();
+#else
Q_OPENGL_EXPORT QGLWidget* qt_gl_share_widget();
Q_OPENGL_EXPORT void qt_destroy_gl_share_widget();
+#endif
class QGLWindowSurfaceGLPaintDevice : public QGLPaintDevice
{