From 980996234f74d578b22081020275677d7dfdadf0 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Mon, 6 Aug 2012 11:04:35 +0100 Subject: Properly check for ability to use GL_REPEAT with npot textures Change-Id: I8dcc1c3f1d6959eef35a45f920bb37c08100a510 Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/qsgdefaultimagenode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/scenegraph/qsgdefaultimagenode.cpp') diff --git a/src/quick/scenegraph/qsgdefaultimagenode.cpp b/src/quick/scenegraph/qsgdefaultimagenode.cpp index 7da9ba4ca1..fda4019c30 100644 --- a/src/quick/scenegraph/qsgdefaultimagenode.cpp +++ b/src/quick/scenegraph/qsgdefaultimagenode.cpp @@ -411,7 +411,7 @@ void QSGDefaultImageNode::updateGeometry() #ifdef QT_OPENGL_ES_2 QOpenGLContext *ctx = QOpenGLContext::currentContext(); - bool npotSupported = ctx->functions()->hasOpenGLFeature(QOpenGLFunctions::NPOTTextures); + bool npotSupported = ctx->functions()->hasOpenGLFeature(QOpenGLFunctions::NPOTTextureRepeat); QSize size = t->textureSize(); bool isNpot = !isPowerOfTwo(size.width()) || !isPowerOfTwo(size.height()); bool wrapSupported = npotSupported || !isNpot; -- cgit v1.2.3