• Samuel Rødal's avatar
    Fix for current_fbo getting out of sync in QtOpenGL · a4428d48
    Samuel Rødal authored
    
    When using QGLWidget in combination with QOpenGLFramebufferObject from
    QtGui, instead of QGLFramebufferObject from QtOpenGL, the current_fbo
    variable doesn't get updated when framebuffer object bindings change.
    
    To ensure that the QGLWidget correctly releases the currently bound
    framebuffer object when using a QPainter, we keep track of whether
    QOpenGLFramebufferObject has modified the current FBO binding, and if
    that's the case we need to read the OpenGL state directly instead of
    relying on a cached value.
    
    Change-Id: If7e0bd936e202cad07365b5ce641ee01d2251930
    Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
    a4428d48