Backends: Made all backends sources files support global IMGUI_DISABLE. (#6601)

This commit is contained in:
ocornut
2023-07-13 11:27:52 +02:00
parent 6888e6cdff
commit 33e13c85e1
41 changed files with 171 additions and 9 deletions

View File

@ -104,6 +104,7 @@
#endif
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_opengl3.h"
#include <stdio.h>
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
@ -933,9 +934,13 @@ void ImGui_ImplOpenGL3_DestroyDeviceObjects()
ImGui_ImplOpenGL3_DestroyFontsTexture();
}
//-----------------------------------------------------------------------------
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif // #ifndef IMGUI_DISABLE