Fix check in texture cleanup code
Change-Id: Iaf91cf27d64aedb71a8af7ba318ff1231ff11b0d Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>bb10
parent
00a8f0b643
commit
14d2c01262
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue