mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 13:51:30 +11:00
Print the pixel format in the window
example
This commit is contained in:
parent
e953e3d4ea
commit
05c24b39cc
|
@ -24,6 +24,8 @@ fn main() {
|
|||
window.set_window_resize_callback(Some(resize_callback as fn(u32, u32)));
|
||||
unsafe { window.make_current() };
|
||||
|
||||
println!("Pixel format of the window: {:?}", window.get_pixel_format());
|
||||
|
||||
let context = support::load(&window);
|
||||
|
||||
while !window.is_closed() {
|
||||
|
|
Loading…
Reference in a new issue