mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Test now less restrictive
This commit is contained in:
@@ -30,5 +30,6 @@ fn main() {
|
||||
let mut value: (u8, u8, u8, u8) = unsafe { std::mem::uninitialized() };
|
||||
unsafe { gl.ReadPixels(0, 0, 1, 1, gl::RGBA, gl::UNSIGNED_BYTE, std::mem::transmute(&mut value)) };
|
||||
|
||||
assert_eq!(value, (0, 255, 0, 255));
|
||||
assert!(value == (0, 255, 0, 255) || value == (0, 64, 0, 255) ||
|
||||
value == (0, 64, 0, 255) || value == (0, 64, 0, 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user