Commit b7d14960 by andrewlewis Committed by Oliver Woodman

Fully clean up resources in EGLSurfaceTexture

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201376315
parent c14d5904
......@@ -121,6 +121,10 @@ public final class EGLSurfaceTexture implements SurfaceTexture.OnFrameAvailableL
if (context != null) {
EGL14.eglDestroyContext(display, context);
}
// EGL14.eglReleaseThread could crash before Android K (see [internal: b/11327779]).
if (Util.SDK_INT >= 19) {
EGL14.eglReleaseThread();
}
display = null;
context = null;
surface = null;
......
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