mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
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:
parent
aa755bb221
commit
08586dcab6
5
main.cpp
5
main.cpp
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user