mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
Merge pull request #372 from tomaka/get-format-examples
Print the pixel format in the `window` example
This commit is contained in:
commit
f0309cb165
|
@ -24,6 +24,8 @@ fn main() {
|
||||||
window.set_window_resize_callback(Some(resize_callback as fn(u32, u32)));
|
window.set_window_resize_callback(Some(resize_callback as fn(u32, u32)));
|
||||||
unsafe { window.make_current() };
|
unsafe { window.make_current() };
|
||||||
|
|
||||||
|
println!("Pixel format of the window: {:?}", window.get_pixel_format());
|
||||||
|
|
||||||
let context = support::load(&window);
|
let context = support::load(&window);
|
||||||
|
|
||||||
while !window.is_closed() {
|
while !window.is_closed() {
|
||||||
|
|
Loading…
Reference in a new issue