diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-02 19:24:26 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-02 19:24:26 +0300 |
commit | 05b639e3b6dd2ab29fd92e4d2bfdedb2f06b5a09 (patch) | |
tree | 88461e3801d72b95d9b0ec882510daf1b295850f /imgui | |
parent | e530103f43a02386c8d4431e8f3cee2d1acc7d6b (diff) |
Use 32-bit vertex indices on emscripten.
Diffstat (limited to 'imgui')
-rw-r--r-- | imgui/imconfig.h | 4 |
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; |