flyover / imgui-js

JavaScript bindings for Dear ImGui using Emscripten and TypeScript
https://flyover.github.io/imgui-js/example/
MIT License
951 stars 99 forks source link

This code does not correctly save/restore WebGL state #40

Closed greggman closed 3 years ago

greggman commented 3 years ago

https://github.com/flyover/imgui-js/blob/e4aeea79e8c30d03803aa7782b34ddaffe9e6939/example/src/imgui_impl.ts#L552

The attribute state is being overwritten and then not restored.

flyover commented 3 years ago

Thanks for the bug report. I've updated the example to more closely match the OpenGL 3 example. See a1a29057476ab50b5f1d8c5e4eb2b1021a632a0b.