QOffscreenSurface rendering... bad frame.
-
wrote on 3 Nov 2019, 19:49 last edited by Dariusz 11 Jun 2019, 05:11
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"
TIA.
main > https://pastebin.com/WgcdSRaJ h > https://pastebin.com/PCTjmh3Q cpp > https://pastebin.com/W3dCZY3H
-
wrote on 4 Nov 2019, 19:44 last edited byThis post is deleted!
-
wrote on 6 Nov 2019, 05:07 last edited by
Bump as I re-edited the topic with new info from "scratch"
1/3