diff options
author | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-05-07 12:58:30 (GMT) |
---|---|---|
committer | Bjoern Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-05-07 14:02:22 (GMT) |
commit | 6b715bc38fc2699c2fd03d18262c236061b9d22d (patch) | |
tree | c10a10e34519fa8993c55f6deb0a97d18140d272 /src/opengl/qglpixelbuffer_mac.mm | |
parent | afa7788e27ca388987993844f72a8182edbab70f (diff) | |
download | Qt-6b715bc38fc2699c2fd03d18262c236061b9d22d.zip Qt-6b715bc38fc2699c2fd03d18262c236061b9d22d.tar.gz Qt-6b715bc38fc2699c2fd03d18262c236061b9d22d.tar.bz2 |
Compiler warnings (Mac/Carbon)
Reviewed-by: nrc
Diffstat (limited to 'src/opengl/qglpixelbuffer_mac.mm')
-rw-r--r-- | src/opengl/qglpixelbuffer_mac.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opengl/qglpixelbuffer_mac.mm b/src/opengl/qglpixelbuffer_mac.mm index 9a679b1..e95e36b 100644 --- a/src/opengl/qglpixelbuffer_mac.mm +++ b/src/opengl/qglpixelbuffer_mac.mm @@ -299,9 +299,8 @@ void QGLPixelBuffer::releaseFromDynamicTexture() GLuint QGLPixelBuffer::generateDynamicTexture() const { - Q_D(const QGLPixelBuffer); - #ifdef QT_MAC_USE_COCOA + Q_D(const QGLPixelBuffer); NSOpenGLContext *oldContext = [NSOpenGLContext currentContext]; if (d->share_ctx != oldContext) [static_cast<NSOpenGLContext *>(d->share_ctx) makeCurrentContext]; |