mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +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)
|
#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