Fix warnings;

This commit is contained in:
bjorn 2019-05-02 19:04:49 -07:00
parent 2aace190fe
commit 4b3e72a5f1
2 changed files with 5 additions and 5 deletions

View File

@ -220,12 +220,12 @@ static void update(float dt) {
}
}
float x, y, z, angle, ax, ay, az;
if (lovrHeadsetDriver && lovrHeadsetDriver->getPose("head", &x, &y, &z, &angle, &ax, &ay, &az)) {
float position[3], orientation[4];
if (lovrHeadsetDriver && lovrHeadsetDriver->getPose("head", position, orientation)) {
mat4 m = state.headPose;
mat4_identity(m);
mat4_translate(m, x, y, z);
mat4_rotate(m, angle, ax, ay, az);
mat4_translate(m, position[0], position[1], position[2]);
mat4_rotateQuat(m, orientation);
}
}
}

View File

@ -134,7 +134,7 @@ static void getDisplayDimensions(uint32_t* width, uint32_t* height) {
state.system->GetRecommendedRenderTargetSize(width, height);
}
static double getDisplayTime() {
static double getDisplayTime(void) {
float secondsSinceVsync;
state.system->GetTimeSinceLastVsync(&secondsSinceVsync, NULL);