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:
hschlueter 2022-03-01 12:26:13 +00:00 committed by Ian Baker
parent 15f9abdd74
commit 1fe19195f9

View File

@ -295,8 +295,6 @@ import java.util.concurrent.atomic.AtomicInteger;
public void release() { public void release() {
externalCopyFrameProcessor.release(); externalCopyFrameProcessor.release();
transformationFrameProcessor.release(); transformationFrameProcessor.release();
GlUtil.deleteTexture(inputExternalTexId);
GlUtil.deleteTexture(intermediateTexId);
GlUtil.destroyEglContext(eglDisplay, eglContext); GlUtil.destroyEglContext(eglDisplay, eglContext);
inputSurfaceTexture.release(); inputSurfaceTexture.release();
inputSurface.release(); inputSurface.release();