From 2d230155a7b00eea8cbde3fac7d44c636328e1c8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 17 Jul 2023 12:20:17 +0200 Subject: [PATCH] Fixed non standard error messages --- src/Engine/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Engine/main.cpp b/src/Engine/main.cpp index 9bdaac2..2c6844e 100644 --- a/src/Engine/main.cpp +++ b/src/Engine/main.cpp @@ -46,7 +46,7 @@ int main() if (window == nullptr) { - std::cerr << "Failed to create GLFW window"; + std::cerr << "ERROR::GLFW::CREATE_WINDOW"; glfwTerminate(); return -1; @@ -56,7 +56,7 @@ int main() if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { - std::cerr << "Failed to initialise GLAD"; + std::cerr << "ERROR::GLAD::INITILISE"; return -1; } @@ -69,7 +69,7 @@ int main() -0.5f, -0.5f, 0.0f, // bottom left -0.5f, 0.5f, 0.0f // top left }; - GLuint indices[]{ + GLuint faces[]{ 0, 1, 3, 1, 2, 3 }; @@ -85,7 +85,7 @@ int main() glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, elementBufferObject); - glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW); + glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(faces), faces, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(0);