Release program when returning from QOpenGLTextureBlitter::create()
Change-Id: I27b9496f9a58ceabc613372463543068cb432bdc Fixes: QTBUG-60453 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
parent
a1634fb741
commit
eb144c3c4d
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue