From 1557a9ac526a8b2be2db8effbb0c7e333f257cf6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Dec 2023 22:12:55 +0100 Subject: [PATCH] Restore emscripten 32-bit vertex buffer indices. --- imgui/imconfig.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui/imconfig.h b/imgui/imconfig.h index e09dff03..c4e524fe 100644 --- a/imgui/imconfig.h +++ b/imgui/imconfig.h @@ -106,6 +106,10 @@ // Read about ImGuiBackendFlags_RendererHasVtxOffset for details. //#define ImDrawIdx unsigned int +#ifdef __EMSCRIPTEN__ +#define ImDrawIdx unsigned int +#endif + //---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) //struct ImDrawList; //struct ImDrawCmd;