summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-09-25 14:15:15 +0200
committerAndre Weissflog <floooh@gmail.com>2019-09-25 14:15:15 +0200
commitb5e43ec43eb3d0a8a73eadd5db979291be3e039d (patch)
tree229ac59acd8087b67b84219ca402d83f8d5e5698 /util
parent4c14c77d7816bd20df2e18a20c5b7125ff0433e4 (diff)
sokol_imgui.h: fix for cimgui 1.73
Diffstat (limited to 'util')
-rw-r--r--util/sokol_imgui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h
index 418dbe55..18778097 100644
--- a/util/sokol_imgui.h
+++ b/util/sokol_imgui.h
@@ -955,8 +955,8 @@ SOKOL_API_IMPL void simgui_render(void) {
#else
const int vtx_size = cl->VtxBuffer.Size * sizeof(ImDrawVert);
const int idx_size = cl->IdxBuffer.Size * sizeof(ImDrawIdx);
- const ImDrawVert* vtx_ptr = ImVector_ImDrawVert_front(&cl->VtxBuffer);
- const ImDrawIdx* idx_ptr = ImVector_ImDrawIdx_front(&cl->IdxBuffer);
+ const ImDrawVert* vtx_ptr = cl->VtxBuffer.Data;
+ const ImDrawIdx* idx_ptr = cl->IdxBuffer.Data;
#endif
const int vb_offset = sg_append_buffer(bind.vertex_buffers[0], vtx_ptr, vtx_size);
const int ib_offset = sg_append_buffer(bind.index_buffer, idx_ptr, idx_size);