mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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();
|
super.release();
|
||||||
try {
|
try {
|
||||||
glProgram.delete();
|
glProgram.delete();
|
||||||
|
if (gainmapTexId != C.INDEX_UNSET) {
|
||||||
|
GlUtil.deleteTexture(gainmapTexId);
|
||||||
|
}
|
||||||
} catch (GlUtil.GlException e) {
|
} catch (GlUtil.GlException e) {
|
||||||
throw new VideoFrameProcessingException(e);
|
throw new VideoFrameProcessingException(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue