Test now less restrictive

This commit is contained in:
Tomaka17 2014-10-26 15:58:43 +01:00
parent 1f22b3b226
commit c61b4ccf99

View file

@ -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));
}