ImDrawIdxSize: number = 4 in imgui.ts causes
switch(ImGui.DrawIdxSize) to select ixU=new Uint32Array
which is not available in WebGl1.
This results in garbled or invisible rendering when integrating into existing webgl1 context.
Uint16Array should be selected for webgl 1
Also if OES_element_index_uint extension is available, that path is not checked too.
ImDrawIdxSize: number = 4 in imgui.ts causes switch(ImGui.DrawIdxSize) to select ixU=new Uint32Array which is not available in WebGl1. This results in garbled or invisible rendering when integrating into existing webgl1 context.
Uint16Array should be selected for webgl 1
Also if OES_element_index_uint extension is available, that path is not checked too.