Skip to content

Need to check XrResult instead of testing nullptr #2

@norlesh

Description

@norlesh

at line 255: if (xr_instance == nullptr)
at line 328: if (xr_session == nullptr)

both of these lines trigger error code E0042 "operand types are incompatible("..." and "std::nullptr_t") since xr_instance and xr_session are value types that were passed by reference instead of pointers as needed to compare with nullptr.
The correct guard for both xrCreateSession() and xrCreateInstance() is to test for XR_SUCCESS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions