diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-03-10 01:59:24 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-03-10 01:59:24 +0100 |
| commit | bfcdb9b331b5dae2bacb59d5657c89dbb4e9117d (patch) | |
| tree | f517c29e4c7d31850cb5d02cb9e343b508d1afe3 /imgui | |
| parent | 95f237afb0537f42421fa312599e32af8c2ec174 (diff) | |
sokol_gfx_imgui.h: install original hooks on shutdown, fixes #132
Diffstat (limited to 'imgui')
| -rw-r--r-- | imgui/sokol_gfx_imgui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/imgui/sokol_gfx_imgui.h b/imgui/sokol_gfx_imgui.h index f31705fb..46555692 100644 --- a/imgui/sokol_gfx_imgui.h +++ b/imgui/sokol_gfx_imgui.h @@ -3477,6 +3477,8 @@ SOKOL_API_IMPL void sg_imgui_init(sg_imgui_t* ctx) { SOKOL_API_IMPL void sg_imgui_discard(sg_imgui_t* ctx) { SOKOL_ASSERT(ctx && (ctx->init_tag == 0xABCDABCD)); + /* restore original trace hooks */ + sg_install_trace_hooks(&ctx->hooks); ctx->init_tag = 0; _sg_imgui_capture_discard(ctx); if (ctx->buffers.slots) { |