From a60dea67360b3fd0d4907eb1885ed94de07dbba8 Mon Sep 17 00:00:00 2001 From: Christian Poetzsch Date: Mon, 14 Sep 2015 15:20:43 +0100 Subject: [PATCH] Explicitly set SWAP_BEHAVIOR to BUFFER_DESTROYED Some new tests missing the call to set the BUFFERED_DESTROYED swap behavior. Change-Id: I2856833d78b9d4763614f68e42eb31194cfe7715 --- modules/egl/teglPartialUpdateTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/egl/teglPartialUpdateTests.cpp b/modules/egl/teglPartialUpdateTests.cpp index ce48157..33ff3ea 100644 --- a/modules/egl/teglPartialUpdateTests.cpp +++ b/modules/egl/teglPartialUpdateTests.cpp @@ -677,6 +677,8 @@ TestCase::IterateResult RenderOutsideDamageRegion::iterate (void) tcu::Surface refBuffer (width, height); Frame frame (width, height); + EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED)); + generateRandomFrame(frame, m_evenFrameDrawType, rnd); { @@ -737,6 +739,8 @@ TestCase::IterateResult RenderBeforeSetDamageRegion::iterate (void) tcu::Surface refBuffer (width, height); Frame frame (width, height); + EGLU_CHECK_CALL(egl, surfaceAttrib(m_eglDisplay, m_eglSurface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED)); + generateRandomFrame(frame, m_evenFrameDrawType, rnd); { -- 2.7.4