mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1485095 - Fix can't get VRSystemManagerExternal in Android. r=kip
MozReview-Commit-ID: F82UoWhVVWs Differential Revision: https://phabricator.services.mozilla.com/D3915 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5f63e77fb8
commit
90d9af9138
@ -515,8 +515,11 @@ VRSystemManagerExternal::Create(VRExternalShmem* aAPIShmem /* = nullptr*/)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if ((!gfxPrefs::VRExternalEnabled() && aAPIShmem == nullptr) ||
|
||||
!XRE_IsGPUProcess()) {
|
||||
if ((!gfxPrefs::VRExternalEnabled() && aAPIShmem == nullptr)
|
||||
#if defined(XP_WIN)
|
||||
|| !XRE_IsGPUProcess()
|
||||
#endif
|
||||
) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user