Skip to content

Commit e8d6994

Browse files
authored
restore 32bit draw index (#26)
1 parent eeb4c5a commit e8d6994

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/imgui/imconfig.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@
117117
// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices).
118118
// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer.
119119
// Read about ImGuiBackendFlags_RendererHasVtxOffset for details.
120-
//#define ImDrawIdx unsigned int
120+
#ifdef IMGUI_USE_32BIT_DRAW_INDEX
121+
#define ImDrawIdx unsigned int
122+
#endif
121123

122124
//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly)
123125
//struct ImDrawList;

0 commit comments

Comments
 (0)