mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-02 12:33:52 +00:00
Fix joystick free;
This commit is contained in:
parent
f396e62eba
commit
5b9b007f18
|
@ -6,6 +6,8 @@ extern OSVR_ClientContext ctx;
|
||||||
|
|
||||||
void lovrJoystickDestroy(Joystick* joystick) {
|
void lovrJoystickDestroy(Joystick* joystick) {
|
||||||
if (joystick->isTracked) {
|
if (joystick->isTracked) {
|
||||||
|
osvrClientFreeInterface(ctx, joystick->osvrTrackerInterface);
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
OSVR_ClientInterface* interface;
|
OSVR_ClientInterface* interface;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue