From 9f36d1d0b3acd0a3c77cfd6b29575a377c9db082 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 17 Jul 2024 23:14:31 -0700 Subject: [PATCH] egl: don't set EGL_TRANSPARENT attributes for the window --- blade-graphics/src/gles/egl.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/blade-graphics/src/gles/egl.rs b/blade-graphics/src/gles/egl.rs index 09f92331..9230807a 100644 --- a/blade-graphics/src/gles/egl.rs +++ b/blade-graphics/src/gles/egl.rs @@ -197,7 +197,7 @@ impl Context { egl1_5 .get_platform_display( EGL_PLATFORM_SURFACELESS_MESA, - std::ptr::null_mut(), + ptr::null_mut(), &[egl::ATTRIB_NONE], ) .unwrap() @@ -419,9 +419,7 @@ impl Context { } } let alpha = if config.transparent { - attributes.push(egl::TRANSPARENT_TYPE); - attributes.push(egl::TRANSPARENT_RGB); - crate::AlphaMode::PostMultiplied //TODO: verify + crate::AlphaMode::PreMultiplied //TODO: verify } else { crate::AlphaMode::Ignored };