From bfc3d41894b054afef32b78e2d9c2c3ffe6aa5ce Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 4 Feb 2015 15:02:42 +0100 Subject: Check for the proper extension for anisotropic filtering Change-Id: I881fccea3af74ead14f523c7c54a405a15ea29ab Reviewed-by: Paul Lemire --- src/gui/opengl/qopengltexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index 903cfb2bf8..db4557d68d 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -3847,7 +3847,7 @@ void QOpenGLTexture::setMaximumAnisotropy(float anisotropy) d->create(); Q_ASSERT(d->texFuncs); Q_ASSERT(d->textureId); - if (!d->features.testFlag(StencilTexturing)) { + if (!d->features.testFlag(AnisotropicFiltering)) { qWarning("QOpenGLTexture::setMaximumAnisotropy() requires GL_EXT_texture_filter_anisotropic"); return; } -- cgit v1.2.3