summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGabor Koncz <gabor.koncz@migeran.com>2022-09-16 12:47:45 +0200
committerGabor Koncz <gabor.koncz@migeran.com>2022-09-16 12:52:01 +0200
commit8972600146ae7aeb4205e58362230b42384d0d0e (patch)
tree52b039f166d7cfbafabc6f03edf7b159a8298a95 /modules
parentbf271ea6af5e4e1dbf12a5428445f0efa54f8651 (diff)
Fix OpenXR layer composition blending
Diffstat (limited to 'modules')
-rw-r--r--modules/openxr/openxr_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp
index 92d074cb75..94095eb61c 100644
--- a/modules/openxr/openxr_api.cpp
+++ b/modules/openxr/openxr_api.cpp
@@ -1557,7 +1557,7 @@ void OpenXRAPI::end_frame() {
XrCompositionLayerProjection projection_layer = {
XR_TYPE_COMPOSITION_LAYER_PROJECTION, // type
nullptr, // next
- layers_list.size() > 1 ? XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT | XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT : XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT, // layerFlags
+ layers_list.size() > 0 ? XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT | XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT : XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT, // layerFlags
play_space, // space
view_count, // viewCount
projection_views, // views