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

createTextureFromNativeObject does not take null pointer

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Qt RHI, Quick: 2D Renderer
    • Labels:
      None
    • Environment:

      Linux fx-9590 5.9.11-arch2-1 #1 SMP PREEMPT Sat, 28 Nov 2020 02:07:22 +0000 x86_64 GNU/Linux

    • Platform/s:
      Linux/X11

      Description

      In my opinion QQuickWindow::createTextureFromNativeObject() }}should allow the {{nullptr }}pointer as its{{ const void *nativeObjectPtr parameter even if only to ignore it. Currently, passing{{ nullptr}} results in a crash, the workaround is to pass a pointer to a zero-initialized GLuint variable.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            janezzabc Janez Žemva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes