Do not call SetBufferDamagedRects if the damaged rect is empty 78/280378/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 29 Aug 2022 07:53:28 +0000 (16:53 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 29 Aug 2022 07:53:28 +0000 (16:53 +0900)
commit13f211c6515af99b1afd4fa292dbf8c6da0d8b7b
treef5a084e80e76de7697b2380dca06563326c1b8bc
parent23e0f7fd0de4418f5f664e131845dd9cc6844f43
Do not call SetBufferDamagedRects if the damaged rect is empty

An empty damaged rect means we will not render the scene and not swap buffers.
A call to eglSetDamageRegion without out eglSwapBuffers may cause EGL_BAD_ACCESS error.

Change-Id: I949498c39d9a558b42b7e2edbbe1162f432e87b8
dali/internal/window-system/common/window-render-surface.cpp