summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-02-12 16:46:55 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-02-12 20:16:05 +0000
commit5b460080fba5faa053b6dc0a39ac4c0b9794295c (patch)
treec8387af4cdf832e8ec01833257755198b492b82c /src/gui/kernel/qopenglcontext.h
parentfe64b12edc759771d5e4a3cd84d13e8d981c98af (diff)
QOpenGLContext: expose the shared global context
We're documenting that this context exists, therefore applications are allowed to assume that it exists. For the same reason, we should expose it as public API -- an application should be allowed to upload GL objects before creating or showing QOpenGLWidgets that use them. Change-Id: Iedbba7cd393018d93833fd2a6b02cce0639a89b4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qopenglcontext.h')
-rw-r--r--src/gui/kernel/qopenglcontext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext.h b/src/gui/kernel/qopenglcontext.h
index 4d5ee08a1b..30a9bc3ad9 100644
--- a/src/gui/kernel/qopenglcontext.h
+++ b/src/gui/kernel/qopenglcontext.h
@@ -199,6 +199,7 @@ public:
bool isOpenGLES() const;
static bool supportsThreadedOpenGL();
+ static QOpenGLContext *globalShareContext();
Q_SIGNALS:
void aboutToBeDestroyed();