Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 86e0753

Browse files
author
Alan Jeffrey
committed
Enable alpha blending
1 parent 168675c commit 86e0753

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

webxr/glwindow/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,14 @@ impl GlWindowDevice {
436436
(gl::NO_ERROR, gl::FRAMEBUFFER_COMPLETE)
437437
);
438438

439+
gl.enable(gl::BLEND);
440+
gl.blend_func_separate(
441+
gl::SRC_ALPHA,
442+
gl::ONE_MINUS_SRC_ALPHA,
443+
gl::ONE,
444+
gl::ONE_MINUS_SRC_ALPHA,
445+
);
446+
439447
let swap_chains = SwapChains::new();
440448
let layer_manager = None;
441449

0 commit comments

Comments
 (0)