mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
[egui_web] Disable face culling in WebGL renderer
Closes https://github.com/emilk/egui/issues/29
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user