Skip to content

Commit

Permalink
Fix incorrectly held lock when frame pipelining is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbucchia committed May 29, 2023
1 parent 56daf46 commit da1a400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pimax-openxr/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ namespace pimax_openxr {
// message:
// [PVR] wait rendering complete event failed:258
// Let's ignore this for now and hope for the best.
lock.unlock();
const auto result = pvr_waitToBeginFrame(m_pvrSession, pvrFrameId);
lock.lock();
if (result != pvr_success) {
ErrorLog("pvr_waitToBeginFrame() failed with code: %s\n", xr::ToString(result).c_str());
}
Expand Down

0 comments on commit da1a400

Please sign in to comment.