XR: fix build error for using EGL without GL(ES)


Amends a9184325f9c07996639ab2f0ac19e4b449c34ba5

XR_USE_PLATFORM_EGL will only be used for linux opengl/opengles.

For the 3rd party dependncy, EGL related types should be
defined before including openxr_platform.h for XR_USE_PLATFORM_EGL

Done-by: Peng Zhang
Fixes: QTBUG-143480
Pick-to: 6.11 6.10 6.8
Change-Id: Iff8238965849604817f282ae7a3b2efaf5444fdd
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Stanislav Aleksandrov <lightofmysoul@gmail.com>
commite2facad90c1bd65d3f6e0008c4e497a9397fe93a
parentfdb56f495e85066ac1bf7c7411c80f7490dc6153
authorInho Lee <inho.lee@qt.io>
committerInho Lee <inho.lee@qt.io>
commit timeFri, 23 Jan 2026 16:06:28 +0100