Explicitly set SWAP_BEHAVIOR to BUFFER_DESTROYED
authorChristian Poetzsch <christian.potzsch@imgtec.com>
Mon, 14 Sep 2015 14:20:43 +0000 (15:20 +0100)
committerMika Isojärvi <misojarvi@google.com>
Mon, 5 Oct 2015 20:04:45 +0000 (13:04 -0700)
Some new tests missing the call to set the BUFFERED_DESTROYED swap
behavior.

Change-Id: I2856833d78b9d4763614f68e42eb31194cfe7715

modules/egl/teglPartialUpdateTests.cpp

index ce48157f0162621266d0e39875b0f5c34f1df4cc..33ff3ea965418c4c13495bbccb30b375919618ae 100644 (file)
@@ -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);
 
        {