Skip to content

egl: Make native display detection work more than once

Adam Jackson requested to merge ajax/mesa:egl-native-display-detection into master

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.

Gitlab: #156 (closed)

Merge request reports