diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp index 2ff804ef..712de9b2 100644 --- a/backends/imgui_impl_opengl3.cpp +++ b/backends/imgui_impl_opengl3.cpp @@ -247,7 +247,7 @@ bool ImGui_ImplOpenGL3_Init(const char* glsl_version) for (GLint i = 0; i < num_extensions; i++) { const char* extension = (const char*)glGetStringi(GL_EXTENSIONS, i); - if (strcmp(extension, "GL_ARB_clip_control") == 0) + if (extension != NULL && strcmp(extension, "GL_ARB_clip_control") == 0) g_HasClipOrigin = true; } #endif