mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
fixed compiler warnings reported by gcc/clang
* changed some catch blocks to use exception references instead of value types * fixed missing use of SCR_WIDTH/SCR_HEIGHT for glfwCreateWindow * fixed implicit numeric type casts regarding signedness * removed unused variables Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ int main()
|
||||
|
||||
// glfw window creation
|
||||
// --------------------
|
||||
GLFWwindow* window = glfwCreateWindow(800, 600, "LearnOpenGL", NULL, NULL);
|
||||
GLFWwindow* window = glfwCreateWindow(SCR_WIDTH, SCR_HEIGHT, "LearnOpenGL", NULL, NULL);
|
||||
if (window == NULL)
|
||||
{
|
||||
std::cout << "Failed to create GLFW window" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user