mirror of https://github.com/bjornbytes/lovr.git
Fix misc builds;
This commit is contained in:
parent
6e75ebafac
commit
0139486f46
|
@ -1,5 +1,5 @@
|
|||
#include "graphics/mesh.h"
|
||||
#include "Graphics/buffer.h"
|
||||
#include "graphics/buffer.h"
|
||||
#include "graphics/graphics.h"
|
||||
#include "graphics/material.h"
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ static bool oculusInit(float offset, int msaa) {
|
|||
static void oculusDestroy() {
|
||||
Controller *controller; int i;
|
||||
vec_foreach(&state.controllers, controller, i) {
|
||||
lovrRelease(controller);
|
||||
lovrRelease(Controller, controller);
|
||||
}
|
||||
vec_deinit(&state.controllers);
|
||||
|
||||
|
@ -126,7 +126,7 @@ static void oculusDestroy() {
|
|||
map_iter_t iter = map_iter(&state.textureLookup);
|
||||
while ((key = map_next(&state.textureLookup, &iter)) != NULL) {
|
||||
Texture* texture = *(Texture**) map_get(&state.textureLookup, key);
|
||||
lovrRelease(texture);
|
||||
lovrRelease(Texture, texture);
|
||||
}
|
||||
map_deinit(&state.textureLookup);
|
||||
|
||||
|
@ -140,7 +140,7 @@ static void oculusDestroy() {
|
|||
state.chain = NULL;
|
||||
}
|
||||
|
||||
lovrRelease(state.canvas);
|
||||
lovrRelease(Canvas, state.canvas);
|
||||
ovr_Destroy(state.session);
|
||||
ovr_Shutdown();
|
||||
memset(&state, 0, sizeof(state));
|
||||
|
|
|
@ -59,7 +59,7 @@ static void onControllerRemoved(uint32_t id) {
|
|||
.data.controller = { controller, 0 }
|
||||
});
|
||||
vec_splice(&state.controllers, i, 1);
|
||||
lovrRelease(controller);
|
||||
lovrRelease(Controller, controller);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue