mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Ultra HDR: release texture after use
PiperOrigin-RevId: 616209205
This commit is contained in:
parent
fe640da5e8
commit
4d1ede5432
1 changed files with 3 additions and 0 deletions
|
|
@ -499,6 +499,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
super.release();
|
||||
try {
|
||||
glProgram.delete();
|
||||
if (gainmapTexId != C.INDEX_UNSET) {
|
||||
GlUtil.deleteTexture(gainmapTexId);
|
||||
}
|
||||
} catch (GlUtil.GlException e) {
|
||||
throw new VideoFrameProcessingException(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue