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

QSGTexture::nativeInterface() doesn't work for QSGMetalTexture

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0
    • Quick: SceneGraph
    • None
    • macOS

    Description

      QSGTexture::nativeInterface<QNativeInterface::QSGMetalTexture>() always returns null because the relevant branch is never compiled due to the OBJC flag which is never defined in a CPP file.

      https://github.com/qt/qtdeclarative/blob/dev/src/quick/scenegraph/coreapi/qsgtexture.cpp#L977-L979

      #if defined(_OBJC_)
      QT_NATIVE_INTERFACE_RETURN_IF(QSGMetalTexture, &dd->m_metalTextureAccessor);
      #endif

      Attachments

        Activity

          People

            janichol Andy Nichols
            muratseker Murat Seker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: