Skip to content

Commit 5ff1737

Browse files
committed
Fix Line Loop issue with Oculus Link.
1 parent d6d2cde commit 5ff1737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

virtualdesktop-openxr/visibility_mask.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ namespace virtualdesktop_openxr {
8888
break;
8989
case XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR:
9090
stencilDesc.StencilType = ovrFovStencil_BorderLine;
91-
indicesStride = 2;
91+
// TODO: Not so sure why Virtual Desktop & Oculus OVR differ here.
92+
indicesStride = m_useOculusRuntime ? 1 : 2;
9293
break;
9394
default:
9495
return XR_ERROR_VALIDATION_FAILURE;

0 commit comments

Comments
 (0)