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 <laszlo.agocs@digia.com>
This commit is contained in:
BogDan Vatra 2014-03-05 10:12:39 +02:00 committed by The Qt Project
parent 1f695a31e2
commit c5b2425e8e

View File

@ -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;