Fix misc builds;

This commit is contained in:
bjorn 2019-04-05 06:07:46 -07:00
parent 6e75ebafac
commit 0139486f46
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#include "graphics/mesh.h"
#include "Graphics/buffer.h"
#include "graphics/buffer.h"
#include "graphics/graphics.h"
#include "graphics/material.h"

View File

@ -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));

View File

@ -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;
}
}