Print the pixel format in the window example

This commit is contained in:
Pierre Krieger 2015-05-04 09:23:43 +02:00
parent e953e3d4ea
commit 05c24b39cc

View file

@ -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() {