flyover / imgui-js

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

Added support for webgl2 #31

Closed faggionluca closed 3 years ago

faggionluca commented 3 years ago

I tried to use the library in one of my project that was setting the canvas to the wbgl2 context this was causing the invalidation of the imgui.getContext("webgl", {alpha: false}) call in Imgui_Impl resulting in a black screen. I've tested it a bit on my app and it seams to behave correctly in the webgl2 context

flyover commented 3 years ago

Thank you for the pull request. See bcada430eb915b5f7b074f28cbcf3aafc41d400f.