Added some extra debugging for when glewInit fails, should make it easy to debug #128

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2022-11-04 00:37:31 +01:00
parent aa755bb221
commit 08586dcab6

View File

@ -462,10 +462,11 @@ int main (int argc, char* argv[])
// get the real framebuffer size
glfwGetFramebufferSize (window, &windowWidth, &windowHeight);
GLenum glewInitResult = glewInit ();
// initialize glew
if (glewInit () != GLEW_OK)
if (glewInitResult != GLEW_OK)
{
fprintf (stderr, "Failed to initialize GLEW");
fprintf (stderr, "Failed to initialize GLEW: %s", glewGetErrorString (glewInitResult));
glfwTerminate ();
return 3;
}