Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130703

Fix casting of EGLNativeDisplayType, EGLNativeWindowType, EGLNativePixmapType

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.9
    • QPA: EGLFS
    • None
    • d97c65b79 (dev)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gscheibel Glenn Scheibel
            arpa Ari Parkkila
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes