From 7339c48850e9c5df8738f372c8d3b4b007834506 Mon Sep 17 00:00:00 2001 From: Adrian Przekwas Date: Tue, 26 Mar 2024 18:52:37 +0100 Subject: [PATCH] enable transparency --- commonXR.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commonXR.py b/commonXR.py index 54e8c11..03d2ad9 100755 --- a/commonXR.py +++ b/commonXR.py @@ -928,6 +928,8 @@ def paintGL(self): ) w, h = self.render_target_size # "render" to the swapchain image + GL.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA) + GL.glEnable(GL.GL_BLEND) GL.glEnable(GL.GL_SCISSOR_TEST) GL.glScissor(0, 0, w // 2, h) self.vpReg.setViewportPixels(0, 0, w // 2, h)