mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Ultra HDR: release texture after use
PiperOrigin-RevId: 616209205
This commit is contained in:
parent
fe640da5e8
commit
4d1ede5432
@ -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…
x
Reference in New Issue
Block a user