[egui_web] Disable face culling in WebGL renderer

Closes https://github.com/emilk/egui/issues/29
This commit is contained in:
Emil Ernerfeldt 2020-10-21 23:14:12 +02:00
parent 90700e950e
commit df056d2ce4

View file

@ -294,6 +294,7 @@ impl Painter {
let gl = &self.gl;
gl.enable(Gl::SCISSOR_TEST);
gl.disable(Gl::CULL_FACE); // Egui is not strict about winding order.
gl.enable(Gl::BLEND);
gl.blend_func(Gl::ONE, Gl::ONE_MINUS_SRC_ALPHA); // premultiplied alpha
gl.use_program(Some(&self.program));