mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Construct cocoa headless context based on args
This commit is contained in:
@@ -48,8 +48,6 @@ fn test_headless() {
|
||||
let mut values: Vec<u8> = vec![0;(width*height*4) as usize];
|
||||
gl.ReadPixels(0, 0, width, height, gl::RGBA, gl::UNSIGNED_BYTE, values.as_mut_ptr() as *mut GLvoid);
|
||||
|
||||
println!("{:?}", values);
|
||||
|
||||
assert_eq!(values[0], 0);
|
||||
assert_eq!(values[1], 255);
|
||||
assert_eq!(values[2], 0);
|
||||
|
||||
Reference in New Issue
Block a user