diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-09-25 14:15:15 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-09-25 14:15:15 +0200 |
| commit | b5e43ec43eb3d0a8a73eadd5db979291be3e039d (patch) | |
| tree | 229ac59acd8087b67b84219ca402d83f8d5e5698 /util | |
| parent | 4c14c77d7816bd20df2e18a20c5b7125ff0433e4 (diff) | |
sokol_imgui.h: fix for cimgui 1.73
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_imgui.h | 4 |
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); |