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

Unify defaultFramebufferObject between QOpenGLContext and QOpenGLWidget and QOpenGLWindow

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.5.0
    • None
    • GUI: OpenGL
    • None
    • 2266f519225eebca724dd658d185f96bc9ad086c

      The fact that QOpenGLWidget provides its own defaultFramebufferObject() function is somewhat confusing. Most people try to use QOpenGLContext::defaultFramebufferObject() instead which of course knows nothing about QOpenGLWidget and QOpenGLWindow and such.

      See http://qt-project.org/forums/viewthread/50427/ for example

      Additionally, this breaks functions like

      • QOpenGLFramebufferObject::release()
      • QOpenGLFramebufferObject::bindDefault()
      • QOpenGLFunctions::glBindFramebuffer with fbo == 0

      that rebind the context's defaultFramebufferObject() but that is not the correct one (it is always 0 except on iOS) when performing rendering into a QOpenGLWidget.

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

            lagocs Laszlo Agocs
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes