The open source OpenXR runtime

st/oxr: Avoid calling oxr_action_cache_stop_output every time when xrSyncActions is called

+1 -1
+1 -1
src/xrt/state_trackers/oxr/oxr_input.c
··· 1125 1125 /* a cache can only have outputs or inputs, not both */ 1126 1126 if (cache->output_count > 0) { 1127 1127 cache->current.active = true; 1128 - if (cache->stop_output_time < time) { 1128 + if (cache->stop_output_time > 0 && cache->stop_output_time < time) { 1129 1129 oxr_action_cache_stop_output(log, sess, cache); 1130 1130 } 1131 1131 } else if (cache->input_count > 0) {