d/ns: Allow for freeing the 3D optical system

This commit is contained in:
Moses Turner 2022-09-18 08:10:43 -05:00 committed by Jakob Bornecrantz
parent ab513828ac
commit 956ee5ae9d

View file

@ -267,6 +267,14 @@ ns_3d_create_optical_system(struct ns_3d_eye *eye)
return (struct ns_optical_system *)opticalSystem;
}
extern "C" void
ns_3d_free_optical_system(struct ns_optical_system **system)
{
OpticalSystem *cast_sys = (OpticalSystem *)*system;
delete cast_sys;
*system = NULL;
}
extern "C" void
ns_3d_display_uv_to_render_uv(struct xrt_vec2 in, struct xrt_vec2 *out, struct ns_3d_eye *eye)
{