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

@ -31,6 +31,7 @@
// 2016-05-07: DirectX11: Disabling depth-write.
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_dx11.h"
// DirectX
@ -595,3 +596,7 @@ void ImGui_ImplDX11_NewFrame()
if (!bd->pFontSampler)
ImGui_ImplDX11_CreateDeviceObjects();
}
//-----------------------------------------------------------------------------
#endif // #ifndef IMGUI_DISABLE