mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
h/old_rgb: Fix regressions
This commit is contained in:
parent
0e50364be6
commit
307e3ca1dc
|
@ -737,6 +737,8 @@ htExitFrame(struct HandTracking *htd,
|
||||||
{
|
{
|
||||||
|
|
||||||
os_mutex_lock(&htd->openxr_hand_data_mediator);
|
os_mutex_lock(&htd->openxr_hand_data_mediator);
|
||||||
|
*out_timestamp_ns = timestamp;
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
out_left->is_active = false;
|
out_left->is_active = false;
|
||||||
out_right->is_active = false;
|
out_right->is_active = false;
|
||||||
|
@ -745,7 +747,6 @@ htExitFrame(struct HandTracking *htd,
|
||||||
*out_right = final_hands_ordered_by_handedness[1];
|
*out_right = final_hands_ordered_by_handedness[1];
|
||||||
|
|
||||||
|
|
||||||
*out_timestamp_ns = timestamp;
|
|
||||||
HT_DEBUG(htd, "Adding ts %zu", htd->hands_for_openxr_timestamp);
|
HT_DEBUG(htd, "Adding ts %zu", htd->hands_for_openxr_timestamp);
|
||||||
}
|
}
|
||||||
os_mutex_unlock(&htd->openxr_hand_data_mediator);
|
os_mutex_unlock(&htd->openxr_hand_data_mediator);
|
||||||
|
@ -1198,6 +1199,8 @@ HandTracking::cCallbackDestroy(t_hand_tracking_sync *ht_sync)
|
||||||
{
|
{
|
||||||
auto ht_ptr = &HandTracking::fromC(ht_sync);
|
auto ht_ptr = &HandTracking::fromC(ht_sync);
|
||||||
|
|
||||||
|
u_sink_debug_destroy(&ht_ptr->debug_sink);
|
||||||
|
|
||||||
delete ht_ptr->views[0].htm;
|
delete ht_ptr->views[0].htm;
|
||||||
delete ht_ptr->views[1].htm;
|
delete ht_ptr->views[1].htm;
|
||||||
delete ht_ptr;
|
delete ht_ptr;
|
||||||
|
@ -1226,6 +1229,7 @@ t_hand_tracking_sync_old_rgb_create(struct t_stereo_camera_calibration *calib)
|
||||||
* Get configuration
|
* Get configuration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
u_sink_debug_init(&htd->debug_sink);
|
||||||
assert(calib != NULL);
|
assert(calib != NULL);
|
||||||
getCalibration(htd, calib);
|
getCalibration(htd, calib);
|
||||||
// Set defaults - most people won't have a config json and it won't get past here.
|
// Set defaults - most people won't have a config json and it won't get past here.
|
||||||
|
|
Loading…
Reference in a new issue