Terminate EGL display after use
authorYogesh Gole <ygole@nvidia.com>
Wed, 17 Oct 2018 11:21:19 +0000 (16:51 +0530)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 1 Nov 2018 10:04:16 +0000 (06:04 -0400)
commit90b601fa8d5c6ca10aca7b3ebb50c02400cb0049
tree81780d696b541812e574d0e39f705de14a069ca5
parent052c5386d604ce69167d387650181319416b4456
Terminate EGL display after use

Previously function getDefaultEglConfigList destroyed native
display but did not terminate the EGL display. It may happen
that next create call will allocate native display at same
address as previous and as per spec multiple calls made to
eglGetPlatformDisplayEXT with the same <platform> and
<native_display> will return the same EGLDisplay handle. But
returned EGLDisplay will have references to stale data.

To fix this destroy the EGL Display along with native display.

Affects: CTS-Configs.*

Components: OpenGL and Framework

VK-GL-CTS Issue: 1426

Change-Id: I8e4c7d693d26bd9be6d7f892d0b5162d9b2b245c
external/openglcts/modules/common/glcConfigListEGL.cpp
framework/egl/egluUtil.cpp
framework/egl/egluUtil.hpp