diff --git a/examples/imgui_impl_opengl3.cpp b/examples/imgui_impl_opengl3.cpp index 364b9ccf..d992f001 100644 --- a/examples/imgui_impl_opengl3.cpp +++ b/examples/imgui_impl_opengl3.cpp @@ -384,7 +384,7 @@ static bool CheckShader(GLuint handle, const char* desc) glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length); if ((GLboolean)status == GL_FALSE) fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s!\n", desc); - if (log_length > 0) + if (log_length > 1) { ImVector buf; buf.resize((int)(log_length + 1)); @@ -402,7 +402,7 @@ static bool CheckProgram(GLuint handle, const char* desc) glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length); if ((GLboolean)status == GL_FALSE) fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link %s! (with GLSL '%s')\n", desc, g_GlslVersionString); - if (log_length > 0) + if (log_length > 1) { ImVector buf; buf.resize((int)(log_length + 1));