diff options
Diffstat (limited to 'src/quick/scenegraph/util/qsgtexturematerial.cpp')
-rw-r--r-- | src/quick/scenegraph/util/qsgtexturematerial.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgtexturematerial.cpp b/src/quick/scenegraph/util/qsgtexturematerial.cpp index afa535d322..87fcb6a186 100644 --- a/src/quick/scenegraph/util/qsgtexturematerial.cpp +++ b/src/quick/scenegraph/util/qsgtexturematerial.cpp @@ -40,6 +40,7 @@ ****************************************************************************/ #include "qsgtexturematerial_p.h" +#include "qsgtexture_p.h" #include <QtGui/qopenglshaderprogram.h> #include <QtGui/qopenglfunctions.h> @@ -80,6 +81,11 @@ void QSGOpaqueTextureMaterialShader::updateState(const RenderState &state, QSGMa QSGTexture *t = tx->texture(); +#ifndef QT_NO_DEBUG + if (!qsg_safeguard_texture(t)) + return; +#endif + t->setFiltering(tx->filtering()); t->setHorizontalWrapMode(tx->horizontalWrapMode()); |