From 9b39d99f6efa45bb6629f9f819c7e8589281e61e Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 14 Nov 2014 15:59:45 +0100 Subject: Detect OSMesa errors --- tests/headless.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/headless.rs') diff --git a/tests/headless.rs b/tests/headless.rs index fe82c1d..084f228 100644 --- a/tests/headless.rs +++ b/tests/headless.rs @@ -32,6 +32,7 @@ fn main() { gl.ReadPixels(0, 0, 1, 1, gl::RGBA, gl::UNSIGNED_BYTE, std::mem::transmute(&mut value)); assert!(value == (0, 255, 0, 255) || value == (0, 64, 0, 255) || - value == (0, 64, 0, 255) || value == (0, 64, 0, 0)); + value == (0, 64, 0, 255) || value == (0, 64, 0, 0), + "value is: {}", value); } } -- cgit v1.2.3