1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-28 01:20:55 +01:00

gladLoadGL() return 0 to indicate failure (#2157)

This commit is contained in:
Hui 2018-10-29 22:51:32 +08:00 committed by omar
parent f3e642322f
commit e6db078eda

View File

@ -64,7 +64,7 @@ int main(int, char**)
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) #elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW)
bool err = glewInit() != GLEW_OK; bool err = glewInit() != GLEW_OK;
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) #elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD)
bool err = gladLoadGL() != 0; bool err = gladLoadGL() == 0;
#endif #endif
if (err) if (err)
{ {