egl: Make native display detection work more than once
authorAdam Jackson <ajax@redhat.com>
Wed, 9 Oct 2019 00:20:36 +0000 (20:20 -0400)
committerAdam Jackson <ajax@nwnk.net>
Wed, 9 Oct 2019 18:12:29 +0000 (18:12 +0000)
eglGetDisplay is awful because you have to inspect the pointer you're
given and guess what type of native display it corresponds to. We make
it worse by caching the type of the first such display we detect, so if
the second call to eglGetDisplay is to a different display type, kaboom.

Fortunately this is a problem that can be solved with the delete key.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/156

No differences found