Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOffscreenSurface rendering... bad frame.

QOffscreenSurface rendering... bad frame.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qopenglframebufqopenglwindowglreadpixelsqoffscreensurfa
3 Posts 1 Posters 534 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dariusz
    wrote on 3 Nov 2019, 19:49 last edited by Dariusz 11 Jun 2019, 05:11
    #1

    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
    

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on 4 Nov 2019, 19:44 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dariusz
        wrote on 6 Nov 2019, 05:07 last edited by
        #3

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

        1 Reply Last reply
        0

        1/3

        3 Nov 2019, 19:49

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved