mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00: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)
|
#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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user