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

Callback for makeContext/doneContext

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.1
    • GUI: OpenGL
    • None
    • All

      When functions like QOpenGLWindow:paintGL are called by other QT functions, makeCurrent and doneCurrent might be called before/after calling.

      When decoupling QT from context handling or when enhancing context handling one might define own functions that attach/detach a context.
      For example one might implement a function, that pushes the previous context on a stack when switching context and restoring that previous context afterwards.

      For this usecase it would be creat to be able to register a callback that is called by QT when makeCurrent or doneCurrent are called.

      When this feature is not implemented it would be great if at least the documentation specified where exectly makeCurrent/doneCurrent is called, so one knows when additional context handling must take place after leaving QT calls.

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

            lagocs Laszlo Agocs
            destranix Destranix Harkness
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes