Skip to content

Commit

Permalink
Quad Layers test only.
Browse files Browse the repository at this point in the history
  • Loading branch information
helifax committed Nov 20, 2024
1 parent a6e9ff4 commit 9b69f35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ BrowserWorld::CreateSkyBox(const std::string& aBasePath, const std::string& aExt
bool usesSRGB = false;
#endif

#if OCULUSVR
#if OCULUSVR || SPACES
// Meta Quest (after v69) does not support compressed textures for the cubemap.
const std::string extension = aExtension.empty() ? ".png" : aExtension;
#else
Expand Down
10 changes: 5 additions & 5 deletions app/src/openxr/cpp/DeviceDelegateOpenXR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ DeviceDelegateOpenXR::CreateLayerQuad(const VRLayerSurfacePtr& aMoveLayer) {
VRLayerCylinderPtr
DeviceDelegateOpenXR::CreateLayerCylinder(int32_t aWidth, int32_t aHeight,
VRLayerSurface::SurfaceType aSurfaceType) {
if (!m.layersEnabled) {
if (m.layersEnabled) {
return nullptr;
}

Expand All @@ -1445,7 +1445,7 @@ DeviceDelegateOpenXR::CreateLayerCylinder(int32_t aWidth, int32_t aHeight,

VRLayerCylinderPtr
DeviceDelegateOpenXR::CreateLayerCylinder(const VRLayerSurfacePtr& aMoveLayer) {
if (!m.layersEnabled) {
if (m.layersEnabled) {
return nullptr;
}

Expand All @@ -1468,7 +1468,7 @@ DeviceDelegateOpenXR::CreateLayerCylinder(const VRLayerSurfacePtr& aMoveLayer) {

VRLayerCubePtr
DeviceDelegateOpenXR::CreateLayerCube(int32_t aWidth, int32_t aHeight, GLint aInternalFormat) {
if (!m.layersEnabled) {
if (m.layersEnabled) {
return nullptr;
}
if (m.cubeLayer) {
Expand All @@ -1485,7 +1485,7 @@ DeviceDelegateOpenXR::CreateLayerCube(int32_t aWidth, int32_t aHeight, GLint aIn

VRLayerEquirectPtr
DeviceDelegateOpenXR::CreateLayerEquirect(const VRLayerPtr &aSource) {
if (!m.layersEnabled) {
if (m.layersEnabled) {
return nullptr;
}

Expand All @@ -1511,7 +1511,7 @@ DeviceDelegateOpenXR::CreateLayerEquirect(const VRLayerPtr &aSource) {
void
DeviceDelegateOpenXR::CreateLayerPassthrough() {
assert(m.passthroughStrategy);
if (!m.layersEnabled || m.passthroughLayer || !m.passthroughStrategy->usesCompositorLayer()) {
if (m.layersEnabled || m.passthroughLayer || !m.passthroughStrategy->usesCompositorLayer()) {
return;
}

Expand Down

0 comments on commit 9b69f35

Please sign in to comment.