From 75c1e0edb6654f82278c23d57b3830e17ccb9b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Fri, 9 Dec 2016 17:49:56 +0200 Subject: [PATCH] Fix buffer age test to verify only when preserved bit is set --- modules/egl/teglBufferAgeTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/egl/teglBufferAgeTests.cpp b/modules/egl/teglBufferAgeTests.cpp index 7aac350..9d60895 100644 --- a/modules/egl/teglBufferAgeTests.cpp +++ b/modules/egl/teglBufferAgeTests.cpp @@ -565,7 +565,7 @@ TestCase::IterateResult BufferAgeTest::iterate (void) } // do verification in the second half - if (currentBufferAge > 0) //buffer contain previous content, need to verify + if (m_preserveColorBuffer && currentBufferAge > 0) //buffer contain previous content, need to verify { const vector framesOnBuffer = getFramesOnBuffer(bufferAges, frameNdx); readPixels(m_gl, ¤tBuffer); -- 2.5.5