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. Where is it safe to initialize OpenGL?
Forum Updated to NodeBB v4.3 + New Features

Where is it safe to initialize OpenGL?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 466 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.
  • B Offline
    B Offline
    bobthebuilder
    wrote on last edited by
    #1

    Reading the documentation for QOpenGLFunctions, the example provided there initializes OpenGL in the constructor of a class that inherits from QOpenGLFunctions and QWindow. In the OpenGL Window Example, however, initialization is done in the render function with a boolean to check if OpenGL has already been initialized.

    Why is the example code doing initialization in render? Is it unsafe to initialize OpenGL in the constructor?

    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