File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1601,8 +1601,8 @@ static bool openxr_init(HeadsetConfig* config) {
1601
1601
for (uint32_t i = 0 ; i < MAX_PROFILES ; i ++ ) {
1602
1602
for (uint32_t j = 0 ; j < bindingCount [i ]; j ++ ) {
1603
1603
if (bindings [i ][j ].action == ACTION_PINCH_POSE || bindings [i ][j ].action == ACTION_POKE_POSE ) {
1604
- REMOVE_BINDINGS (bindings [i ], bindingCount [i ], j , 4 );
1605
- bindingCount [i ] -= 4 ;
1604
+ REMOVE_BINDINGS (bindings [i ], bindingCount [i ], j , 2 );
1605
+ bindingCount [i ] -= 2 ;
1606
1606
break ;
1607
1607
}
1608
1608
}
@@ -1611,7 +1611,7 @@ static bool openxr_init(HeadsetConfig* config) {
1611
1611
1612
1612
if (!state .extensions .palmPose ) {
1613
1613
for (uint32_t i = 0 ; i < MAX_PROFILES ; i ++ ) {
1614
- for (uint32_t j = 0 ; bindings [i ][ j ]. path ; j ++ ) {
1614
+ for (uint32_t j = 0 ; j < bindingCount [i ]; j ++ ) {
1615
1615
if (bindings [i ][j ].action == ACTION_PALM_POSE ) {
1616
1616
REMOVE_BINDINGS (bindings [i ], bindingCount [i ], j , 2 );
1617
1617
bindingCount [i ] -= 2 ;
You can’t perform that action at this time.
0 commit comments