Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/imgui
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-02 19:24:26 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-02 19:24:26 +0300
commit05b639e3b6dd2ab29fd92e4d2bfdedb2f06b5a09 (patch)
tree88461e3801d72b95d9b0ec882510daf1b295850f /imgui
parente530103f43a02386c8d4431e8f3cee2d1acc7d6b (diff)
Use 32-bit vertex indices on emscripten.
Diffstat (limited to 'imgui')
-rw-r--r--imgui/imconfig.h4
1 files changed, 4 insertions, 0 deletions
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;