diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-10-27 12:29:26 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-10-28 10:01:38 +0000 |
commit | f577a01f5e8d9678d268917ca727a6e9a3e819a6 (patch) | |
tree | 041e159339ac040c3d61406f3174dd0d1a00396a /LICENSE.GPLv3 | |
parent | 8d9c42e36217e14efa69974c2cdc8d90f465a959 (diff) |
eglfs: Cast to EGLNativeDisplayType in EGLDevice backend
When compiling with EGL native types being the Xlib types (uncommon since
we disable this both for Mesa and NVIDIA embedded, but can happen with other
vendor's headers), the types for EGLDeviceEXT (void*) and EGLNativeDisplayType
(Display, i.e. _XDisplay*) won't match, breaking compilation. At runtime we won't
hit that path, so all we need to ensure is that the code compiles. Do this via a cast.
When the native types are generic, both types are void* so the cast has no
effect.
Change-Id: Ib54f569d4494906f74107f08b47bd6b521d700db
Reviewed-by: Louai Al-Khanji <louai.al-khanji@qt.io>
Diffstat (limited to 'LICENSE.GPLv3')
0 files changed, 0 insertions, 0 deletions