summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-02-10 14:46:05 -0500
committerLLLL Colonq <llll@colonq>2026-02-10 14:46:05 -0500
commit1a7c2a95c04ab795bc112bd4fd3c9d44c5240497 (patch)
tree5dcd03595271adb6088a8adb3ef4e3c22af59d18 /crates
parent2d663e9dd6fdabcad7f0e95aafc03bbfcfcd1a8c (diff)
Update
Diffstat (limited to 'crates')
-rw-r--r--crates/teleia/src/context.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/teleia/src/context.rs b/crates/teleia/src/context.rs
index 42ab6d8..28ca2bf 100644
--- a/crates/teleia/src/context.rs
+++ b/crates/teleia/src/context.rs
@@ -231,6 +231,17 @@ impl Context {
}
}
+ pub fn flip_colors_blend(&self) {
+ unsafe {
+ self.gl.blend_func_separate(
+ glow::ONE_MINUS_DST_COLOR,
+ glow::ZERO,
+ glow::ZERO,
+ glow::ONE,
+ );
+ }
+ }
+
pub fn enable_culling(&self) {
unsafe {
self.gl.enable(glow::CULL_FACE);