mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 14:16:36 +00:00
gladLoadGL() return 0 to indicate failure (#2157)
This commit is contained in:
parent
f3e642322f
commit
e6db078eda
@ -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