diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-07 16:42:08 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-07 16:43:11 (GMT) |
commit | 3d038b2990da8cda7da2bca752eb0851b3cfe1a5 (patch) | |
tree | b74224b7d83addd306e7c3149bb597535f3a45bb /src/opengl | |
parent | 16cdfbc5464a9468fbd5515d77fea82d116b3b51 (diff) | |
download | Qt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.zip Qt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.tar.gz Qt-3d038b2990da8cda7da2bca752eb0851b3cfe1a5.tar.bz2 |
Fixed compile failure on Mac OS X.
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qglframebufferobject.cpp | 3 |
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 |