mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
d/ns: Allow for freeing the 3D optical system
This commit is contained in:
parent
ab513828ac
commit
956ee5ae9d
|
@ -267,6 +267,14 @@ ns_3d_create_optical_system(struct ns_3d_eye *eye)
|
||||||
return (struct ns_optical_system *)opticalSystem;
|
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
|
extern "C" void
|
||||||
ns_3d_display_uv_to_render_uv(struct xrt_vec2 in, struct xrt_vec2 *out, struct ns_3d_eye *eye)
|
ns_3d_display_uv_to_render_uv(struct xrt_vec2 in, struct xrt_vec2 *out, struct ns_3d_eye *eye)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue