diff --git a/src/imgui_impl.ts b/src/imgui_impl.ts index 6189ac4..0a80b55 100644 --- a/src/imgui_impl.ts +++ b/src/imgui_impl.ts @@ -65,7 +65,7 @@ // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill gl && gl.enable(gl.BLEND); gl && gl.blendEquation(gl.FUNC_ADD); - gl && gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); + gl && gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE); gl && gl.disable(gl.CULL_FACE); gl && gl.disable(gl.DEPTH_TEST); gl && gl.enable(gl.SCISSOR_TEST);