summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2013-09-29 20:13:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-30 11:37:52 +0200
commit14d2c012620254dd18236aa579653bcbfce01904 (patch)
tree8eedc0fc81b4bbd457eed1bfe691c636dfa96c57 /src/gui
parent00a8f0b6439b5fd6011d8bb415852135d98ecc57 (diff)
Fix check in texture cleanup code
Change-Id: Iaf91cf27d64aedb71a8af7ba318ff1231ff11b0d Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/opengl/qopengltexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp
index d053937c89..a6e1c2953d 100644
--- a/src/gui/opengl/qopengltexture.cpp
+++ b/src/gui/opengl/qopengltexture.cpp
@@ -175,7 +175,7 @@ bool QOpenGLTexturePrivate::create()
void QOpenGLTexturePrivate::destroy()
{
- if (QOpenGLContext::currentContext() == context) {
+ if (QOpenGLContext::currentContext() != context) {
qWarning("Requires a valid current OpenGL context.\n"
"Texture has not been destroyed");
return;