Prevent fatal error in WebXR when 'immersize-ar' loses and regains tracking
This commit is contained in:
parent
1ea133b6b5
commit
a23fc126eb
3 changed files with 32 additions and 10 deletions
|
|
@ -47,7 +47,6 @@ class WebXRInterfaceJS : public WebXRInterface {
|
|||
private:
|
||||
bool initialized;
|
||||
|
||||
// @todo Should these really use enums instead of strings?
|
||||
String session_mode;
|
||||
String required_features;
|
||||
String optional_features;
|
||||
|
|
@ -55,6 +54,7 @@ private:
|
|||
String reference_space_type;
|
||||
|
||||
bool controllers_state[2];
|
||||
Size2 render_targetsize;
|
||||
|
||||
Transform _js_matrix_to_transform(float *p_js_matrix);
|
||||
void _update_tracker(int p_controller_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue