From 05b639e3b6dd2ab29fd92e4d2bfdedb2f06b5a09 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 2 Oct 2022 18:24:26 +0200 Subject: Use 32-bit vertex indices on emscripten. --- imgui/imconfig.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'imgui') diff --git a/imgui/imconfig.h b/imgui/imconfig.h index e3dc27f6..6ad6eda0 100644 --- a/imgui/imconfig.h +++ b/imgui/imconfig.h @@ -97,6 +97,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; -- cgit v1.2.3