mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-20 19:02:57 +00:00
Disable Intel Fastclear in GL Backend
This works around a Mesa bug on Intel cards: - https://gitlab.freedesktop.org/mesa/mesa/-/issues/2565 - https://github.com/gfx-rs/wgpu/issues/1627#issuecomment-877854185
This commit is contained in:
parent
4b4e393eec
commit
f0c7e990f7
@ -396,6 +396,11 @@ impl crate::Instance<super::Api> for Instance {
|
||||
None
|
||||
};
|
||||
|
||||
// Workaround Mesa driver bug on Intel cards by disabling fastclear:
|
||||
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/2565
|
||||
// https://github.com/gfx-rs/wgpu/issues/1627#issuecomment-877854185
|
||||
std::env::set_var("INTEL_DEBUG", "nofc");
|
||||
|
||||
let display = if let (Some(library), Some(egl)) =
|
||||
(wayland_library, egl.upcast::<egl::EGL1_5>())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user