From 8fa3ca731bb5e0d54366ae4e28dfd14cb8483444 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 21 Sep 2021 09:31:48 -0400 Subject: [PATCH] hal/gl: disable presentation on intel+nv --- wgpu-hal/src/gles/egl.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/gles/egl.rs b/wgpu-hal/src/gles/egl.rs index 85295583c3..0b14fd6895 100644 --- a/wgpu-hal/src/gles/egl.rs +++ b/wgpu-hal/src/gles/egl.rs @@ -160,7 +160,14 @@ fn choose_config( match egl.choose_first_config(display, &attributes) { Ok(Some(config)) => { - return Ok((config, tier_max >= 1)); + if tier_max == 1 { + log::warn!( + "EGL says it can present to the window but not natively. {}. {}", + "This has been confirmed to malfunction on Intel+NV laptops", + "Therefore, we disable presentation entirely for this platform" + ); + } + return Ok((config, tier_max >= 2)); } Ok(None) => { log::warn!("No config found!");