summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/teleia/src/context.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/teleia/src/context.rs b/crates/teleia/src/context.rs
index 56494dc..21212f0 100644
--- a/crates/teleia/src/context.rs
+++ b/crates/teleia/src/context.rs
@@ -189,6 +189,13 @@ impl Context {
}
}
+ pub fn use_inverse_stencil(&self) {
+ unsafe {
+ self.gl.stencil_func(glow::NOTEQUAL, 1, 0xff);
+ self.gl.stencil_op(glow::KEEP, glow::KEEP, glow::KEEP);
+ }
+ }
+
pub fn end_stencil(&self) {
unsafe {
self.gl.stencil_func(glow::ALWAYS, 1, 0xff);