mirror of https://github.com/bjornbytes/lovr.git
Fix warnings;
This commit is contained in:
parent
2aace190fe
commit
4b3e72a5f1
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue