Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.9
-
None
Description
The EGLNativeDisplayType, EGLNativeWindowType, EGLNativePixmapType types should be cast using proper C++ casts, due to their definition in EGL/eglplatform.h being:
#define EGLNativeDisplayType void * #define EGLNativeWindowType void * #define EGLNativePixmapType void *
This leads to function-style casts, e.g. EGLNativeDisplayType(quintptr(defaultDisplay)), expanding to invalid code, void *(quintptr(defaultDisplay)) and breaking compilation. This needs a reinterpret_cast to work sensibly.