From c5b2425e8ea1aa25d7ce4253f0205c989bf7a345 Mon Sep 17 00:00:00 2001 From: BogDan Vatra Date: Wed, 5 Mar 2014 10:12:39 +0200 Subject: Fix compile Move Q_Q(QGLContext); inside #ifndef block, otherwise q varialble remains unused and it breaks the compilation. Change-Id: Iebef9a45930fd4f7783eb983b55bf6b5e0b94cf4 Reviewed-by: Laszlo Agocs --- src/opengl/qgl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/opengl') diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index 1bdc9b84e0..1fbff0f0fe 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -2517,14 +2517,13 @@ QGLTexture *QGLContextPrivate::bindTexture(const QPixmap &pixmap, GLenum target, /*! \internal */ int QGLContextPrivate::maxTextureSize() { - Q_Q(QGLContext); - if (max_texture_size != -1) return max_texture_size; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max_texture_size); #ifndef QT_OPENGL_ES + Q_Q(QGLContext); if (!q->contextHandle()->isES()) { GLenum proxy = GL_PROXY_TEXTURE_2D; -- cgit v1.2.3