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

features/potocpav-newer-lines-2
Hui ago%!(EXTRA string=7 years) committed by omar
parent f3e642322f
commit e6db078eda
  1. 2
      examples/example_glfw_opengl3/main.cpp

@ -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…
Cancel
Save