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. Problem with applying a OpenGL Shader in a Thread
Qt 6.11 is out! See what's new in the release blog

Problem with applying a OpenGL Shader in a Thread

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 773 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I have a problem with adding Shaders to an OpenGL Widget while in a Thread.

    I have uploaded the code here: "https://github.com/odie42/qtopengl":https://github.com/odie42/qtopengl

    It seems to load the shaders, but doesn't update the buffer or something. I can't figure out why the shader/geometry isn't displayed.

    The code works if i just change the background color with qGlClearColor() and then call updateGL(). (I mean i can see a change in the GLWidget)

    1 Reply Last reply
    0

    • Login

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