Commit 1fe19195 by hschlueter Committed by Ian Baker

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
parent 15f9abdd
...@@ -295,8 +295,6 @@ import java.util.concurrent.atomic.AtomicInteger; ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment