summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglframebufferobject.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-09-07 16:42:08 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-09-07 16:43:11 (GMT)
commit3d038b2990da8cda7da2bca752eb0851b3cfe1a5 (patch)
treeb74224b7d83addd306e7c3149bb597535f3a45bb /src/opengl/qglframebufferobject.cpp
parent16cdfbc5464a9468fbd5515d77fea82d116b3b51 (diff)
downloadQt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.zip
Qt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.tar.gz
Qt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.tar.bz2
Fixed compile failure on Mac OS X.
Diffstat (limited to 'src/opengl/qglframebufferobject.cpp')
-rw-r--r--src/opengl/qglframebufferobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opengl/qglframebufferobject.cpp b/src/opengl/qglframebufferobject.cpp
index c50608c..c53ed3a 100644
--- a/src/opengl/qglframebufferobject.cpp
+++ b/src/opengl/qglframebufferobject.cpp
@@ -1003,8 +1003,7 @@ void QGLFramebufferObject::drawTexture(const QPointF &point, GLuint textureId, G
/*! \internal */
void QGLFramebufferObject::drawTexture(const QPointF &point, QMacCompatGLuint textureId, QMacCompatGLenum textureTarget)
{
- Q_D(QGLFramebufferObject);
- d->ctx->drawTexture(point, textureId, textureTarget);
+ const_cast<QGLContext *>(QGLContext::currentContext())->drawTexture(point, textureId, textureTarget);
}
#endif