Ultra HDR: release texture after use

PiperOrigin-RevId: 616209205
This commit is contained in:
tofunmi 2024-03-15 12:20:54 -07:00 committed by Copybara-Service
parent fe640da5e8
commit 4d1ede5432

View File

@ -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);
} }