diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-12-14 14:16:12 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-12-16 21:46:05 +0000 |
commit | a5b254ff23b9ca3099a9f13e93727e1cd52c8720 (patch) | |
tree | 1b83f3f83f0be384a35caf11fa914239a8f08605 /src/gui/opengl/qopengltexture.cpp | |
parent | 7ec40ab52ea5434791a8d02a8eb20724f24cefc6 (diff) | |
download | qtbase-a5b254ff23b9ca3099a9f13e93727e1cd52c8720.tar.gz |
QOpenGLTexture: check textureId for knowing whether a texture was created
Change-Id: I0775ad9538a7793dc6628abe4556404634ae0462
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture.cpp')
-rw-r--r-- | src/gui/opengl/qopengltexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index 301b2ad13d..33c0d0bb60 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -175,7 +175,7 @@ bool QOpenGLTexturePrivate::create() void QOpenGLTexturePrivate::destroy() { - if (!context) { + if (!textureId) { // not created or already destroyed return; } |