Fix an issue

master
Nicole Collings 2020-07-06 19:09:05 -07:00
parent f15e10677b
commit 4ac862956f
1 changed files with 1 additions and 1 deletions

View File

@ -41,8 +41,8 @@ Window::Window(glm::ivec2 win) :
if ((error = glewInit()) != GLEW_OK) {
glfwTerminate();
glfwDestroyWindow(mainWindow);
throw std::runtime_error("GLEW Fatal error.");
printf("%s", reinterpret_cast<const char *>(glewGetErrorString(error)));
throw std::runtime_error("GLEW Fatal error.");
}
glEnable(GL_DEPTH_TEST);