[egui_web] Disable face culling in WebGL renderer
Closes https://github.com/emilk/egui/issues/29
This commit is contained in:
parent
90700e950e
commit
df056d2ce4
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue