Important: Please read the Qt Code of Conduct -

QOffscreenSurface rendering... bad frame.

  • Hey

    I've "re-eddited" the post with example/new tests.

    So the point of it is to render in offscreen using existing context and then display that upon request. The app below contains "simple" example of QOpenGLWindow and QOffscreensurface to do the test. The window is blue in paintGL(), and while resizing the label will take its texture. When we click on button, the label should go green, but it does not!. Only 2x clicking on button, forces the label to go green. Also once label goes green, 1st update of window will be green as well - which should not happen as then we are displaying offscreen buffer in main window... As far as I can tell there is 1 call delay between what I ask for and what I get... any help wouldbe great!

    "Label is behind button... move to right"


    main >
    h >
    cpp >

  • This post is deleted!

  • Bump as I re-edited the topic with new info from "scratch"