Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix video reprojection issue with layers
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Nov 21, 2018
1 parent 453bd4a commit 3402169
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ BrowserWorld::ShowVRVideo(const int aWindowHandle, const int aVideoProjection) {
return;
}

if (m.vrVideo) {
m.vrVideo->Exit();
}
auto projection = static_cast<VRVideo::VRVideoProjection>(aVideoProjection);
m.vrVideo = VRVideo::Create(m.create, widget, projection, m.device);
if (m.skybox && projection != VRVideo::VRVideoProjection::VIDEO_PROJECTION_3D_SIDE_BY_SIDE) {
Expand Down

0 comments on commit 3402169

Please sign in to comment.