hal/gl: disable presentation on intel+nv

This commit is contained in:
Dzmitry Malyshau
2021-09-21 09:31:48 -04:00
committed by Dzmitry Malyshau
parent 96ed52f4a7
commit 8fa3ca731b

View File

@@ -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!");