Fix OSX errors and warnings

This commit is contained in:
Matthew Taylor
2017-06-18 00:39:07 +01:00
parent 30caeb3489
commit 120c8c8c11
5 changed files with 30 additions and 31 deletions

View File

@@ -75,4 +75,4 @@ void framebuffer_size_callback(GLFWwindow* window, int width, int height)
// make sure the viewport matches the new window dimensions; note that width and
// height will be significantly larger than specified on retina displays.
glViewport(0, 0, width, height);
}
}

View File

@@ -2,6 +2,7 @@
#include <GLFW/glfw3.h>
#include <iostream>
#include <cmath>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow *window);
@@ -182,4 +183,4 @@ void framebuffer_size_callback(GLFWwindow* window, int width, int height)
// make sure the viewport matches the new window dimensions; note that width and
// height will be significantly larger than specified on retina displays.
glViewport(0, 0, width, height);
}
}