mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Print the pixel format in the window
example
This commit is contained in:
parent
e953e3d4ea
commit
05c24b39cc
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue