Skip to content

Commit

Permalink
egl: don't set EGL_TRANSPARENT attributes for the window
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 18, 2024
1 parent 9e47628 commit 9f36d1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blade-graphics/src/gles/egl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit 9f36d1d

Please sign in to comment.