Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06b3667c authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Release all EGL utilities on rendering thread with EGL Context.

Bug: 301023410
Test: Manually examining the logs, no warnings about release on thread
without EGL context.

Change-Id: I2a19e9b0497f640d1e89e1897e1818dfd59de042
parent 5a5b2e68
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -398,6 +398,12 @@ void VirtualCameraRenderThread::threadLoop() {
    processCaptureRequest(*task);
  }

  // Destroy EGL utilities still on the render thread.
  mEglSurfaceTexture.reset();
  mEglTextureRgbProgram.reset();
  mEglTextureYuvProgram.reset();
  mEglDisplayContext.reset();

  ALOGV("Render thread exiting");
}