Release program when returning from QOpenGLTextureBlitter::create()

Change-Id: I27b9496f9a58ceabc613372463543068cb432bdc
Fixes: QTBUG-60453
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Laszlo Agocs 2019-06-19 12:37:51 +02:00
parent a1634fb741
commit eb144c3c4d
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ bool QOpenGLTextureBlitterPrivate::buildProgram(ProgramIndex idx, const char *vs
p->glProgram->setUniformValue(p->swizzleUniformPos, false);
// minmize state left set after a create()
p->glProgram->release();
return true;
}