From 293b1f2c6e50d8f9894c6cae572fca37a371e457 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mika=20Isoj=C3=A4rvi?= Date: Thu, 28 Jan 2016 10:52:30 -0800 Subject: [PATCH] Fix false positives when results are nan in ssbo tests. Bug: 26508540 Change-Id: I212db6a2eefc37ffdd64154a5ddbd3f8f401c754 --- modules/gles31/functional/es31fSSBOLayoutCase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gles31/functional/es31fSSBOLayoutCase.cpp b/modules/gles31/functional/es31fSSBOLayoutCase.cpp index b265614..226c9eb 100644 --- a/modules/gles31/functional/es31fSSBOLayoutCase.cpp +++ b/modules/gles31/functional/es31fSSBOLayoutCase.cpp @@ -1641,7 +1641,7 @@ bool compareComponents (glu::DataType scalarType, const void* ref, const void* r const float refVal = *((const float*)ref + ndx); const float resVal = *((const float*)res + ndx); - if (deFloatAbs(resVal - refVal) >= threshold) + if (!(deFloatAbs(resVal - refVal) <= threshold)) return false; } } -- 2.7.4