mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-24 05:19:02 +08:00
`gladLoadGL` returns 0 on fail, not the other way around.
This commit is contained in:
parent
d07f494305
commit
f8b7e4d94f
@ -64,7 +64,7 @@ int main(int, char**)
|
||||
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW)
|
||||
bool err = glewInit() != GLEW_OK;
|
||||
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD)
|
||||
bool err = gladLoadGL() != 0;
|
||||
bool err = gladLoadGL() == 0;
|
||||
#endif
|
||||
if (err)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user