mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
fix present mode for wgl (#4865)
This commit is contained in:
@@ -1136,7 +1136,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
|
||||
Some(crate::SurfaceCapabilities {
|
||||
formats,
|
||||
present_modes: if cfg!(windows) {
|
||||
vec![wgt::PresentMode::Fifo, wgt::PresentMode::Mailbox]
|
||||
vec![wgt::PresentMode::Fifo, wgt::PresentMode::Immediate]
|
||||
} else {
|
||||
vec![wgt::PresentMode::Fifo] //TODO
|
||||
},
|
||||
|
||||
@@ -744,7 +744,7 @@ impl crate::Surface<super::Api> for Surface {
|
||||
}
|
||||
|
||||
let vsync = match config.present_mode {
|
||||
wgt::PresentMode::Mailbox => false,
|
||||
wgt::PresentMode::Immediate => false,
|
||||
wgt::PresentMode::Fifo => true,
|
||||
_ => {
|
||||
log::error!("unsupported present mode: {:?}", config.present_mode);
|
||||
|
||||
Reference in New Issue
Block a user