From e6db078eda84a7b150205ababac41f8ef4788017 Mon Sep 17 00:00:00 2001 From: Hui Date: Mon, 29 Oct 2018 22:51:32 +0800 Subject: [PATCH] gladLoadGL() return 0 to indicate failure (#2157) --- examples/example_glfw_opengl3/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example_glfw_opengl3/main.cpp b/examples/example_glfw_opengl3/main.cpp index f9b9b643..9ba22da6 100644 --- a/examples/example_glfw_opengl3/main.cpp +++ b/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) {