summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-10-12 15:48:50 +0200
committerSamuel Rødal <sroedal@trolltech.com>2009-10-12 17:11:37 +0200
commite5954bba5bb1f88a847570d4790d0cef64f92209 (patch)
treecadbd97053d151db48fd61ac182a73106cb5909f /src/opengl/qglframebufferobject_p.h
parent96bf551ec168e9b0d1a7c0892c4f809149c6ec51 (diff)
Fixed bug when using QGLWidgets in -graphicssystem opengl
We need to make sure that the FBO is bound in a valid context. Reviewed-by: Tom
Diffstat (limited to 'src/opengl/qglframebufferobject_p.h')
-rw-r--r--src/opengl/qglframebufferobject_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglframebufferobject_p.h b/src/opengl/qglframebufferobject_p.h
index 055a75229b..43d4a414e4 100644
--- a/src/opengl/qglframebufferobject_p.h
+++ b/src/opengl/qglframebufferobject_p.h
@@ -109,7 +109,7 @@ class QGLFBOGLPaintDevice : public QGLPaintDevice
public:
virtual QPaintEngine* paintEngine() const {return fbo->paintEngine();}
virtual QSize size() const {return fbo->size();}
- virtual QGLContext* context() const {return const_cast<QGLContext *>(QGLContext::currentContext());}
+ virtual QGLContext* context() const;
virtual QGLFormat format() const {return fboFormat;}
virtual void ensureActiveTarget();
virtual void beginPaint();