summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-10-02 09:13:30 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-10-19 12:56:37 (GMT)
commite2296ba010100d007a081e0faac8066adbeb7137 (patch)
treec5425000cda1b560aa842f015d060537495a4491 /src/gui/egl/qegl_p.h
parent4d94420184fa109286a9e4233010d5d7539a35a4 (diff)
downloadQt-e2296ba010100d007a081e0faac8066adbeb7137.zip
Qt-e2296ba010100d007a081e0faac8066adbeb7137.tar.gz
Qt-e2296ba010100d007a081e0faac8066adbeb7137.tar.bz2
Stop QEglContext destroying contexts it doesn't own
Reviewed-By: Rhys Weatherley
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r--src/gui/egl/qegl_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index dc399da..16b5b16 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -110,7 +110,7 @@ public:
EGLDisplay display() const { return dpy; }
EGLContext context() const { return ctx; }
- void setContext(EGLContext context) { ctx = context; }
+ void setContext(EGLContext context) { ctx = context; ownsContext = false;}
EGLConfig config() const { return cfg; }
void setConfig(EGLConfig config) { cfg = config; }
@@ -131,6 +131,7 @@ private:
EGLConfig cfg;
EGLSurface currentSurface;
bool current;
+ bool ownsContext;
static EGLDisplay getDisplay(QPaintDevice *device);