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

Commit 1a43965a authored by Kwangkyu Park's avatar Kwangkyu Park Committed by Vadim Caen
Browse files

Fix render thread early termination

Status variables in the render thread were not initialized.
Therefore, it contained garbage values, resulting in the thread
termination and causing eglCreateWindowSurface to fail.

Bug:373830419
Change-Id: I3a33e8f20eae9474c725988988a5d9950c0b248b
(cherry picked from commit 3774b59b)
parent 4b93de7e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -216,8 +216,8 @@ class VirtualCameraRenderThread {
  std::mutex mLock;
  std::deque<std::unique_ptr<ProcessCaptureRequestTask>> mQueue GUARDED_BY(mLock);
  std::condition_variable mCondVar;
  volatile bool mTextureUpdateRequested GUARDED_BY(mLock);
  volatile bool mPendingExit GUARDED_BY(mLock);
  volatile bool GUARDED_BY(mLock) mTextureUpdateRequested = false;
  volatile bool GUARDED_BY(mLock) mPendingExit = false;

  // Acquisition timestamp of last frame.
  std::atomic<uint64_t> mLastAcquisitionTimestampNanoseconds;