QOpenGLTexture: check textureId for knowing whether a texture was created

Change-Id: I0775ad9538a7793dc6628abe4556404634ae0462
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Giuseppe D'Angelo 2015-12-14 14:16:12 +01:00
parent 7ec40ab52e
commit a5b254ff23

View File

@ -175,7 +175,7 @@ bool QOpenGLTexturePrivate::create()
void QOpenGLTexturePrivate::destroy()
{
if (!context) {
if (!textureId) {
// not created or already destroyed
return;
}