mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08:00
Don't delete textures before destroying OpenGL context.
Destroying the context destroys all of OpenGL (see https://www.khronos.org/opengl/wiki/OpenGL_Context), so deleting textures is redundant. PiperOrigin-RevId: 431653728
This commit is contained in:
parent
15f9abdd74
commit
1fe19195f9
@ -295,8 +295,6 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
public void release() {
|
||||
externalCopyFrameProcessor.release();
|
||||
transformationFrameProcessor.release();
|
||||
GlUtil.deleteTexture(inputExternalTexId);
|
||||
GlUtil.deleteTexture(intermediateTexId);
|
||||
GlUtil.destroyEglContext(eglDisplay, eglContext);
|
||||
inputSurfaceTexture.release();
|
||||
inputSurface.release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user