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. OpenGL on mac, forward compatibility....?
QtWS25 Last Chance

OpenGL on mac, forward compatibility....?

Scheduled Pinned Locked Moved Unsolved General and Desktop
openglmac os x
5 Posts 2 Posters 2.2k 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
    delt
    wrote on 23 Jan 2016, 07:28 last edited by
    #1

    Hello everyone,

    I'm writing an app that (currently) targets OpenGL 3.3 Core profile, but on a recent iMac running el Capitan, QOpenGLFunctions_3_3_Core::initializeOpenGLFunctions () returns false. The exact same code works fine on 2 different PC's running Linux. (and i don't have a w**doze machine to test)

    I read something about a "forward compatibility" setting... is this what i need, and if so, how do i set it?

    Thanks again for your time!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Jan 2016, 22:46 last edited by
      #2

      Hi,

      Here's a wiki article that shows how to setup the core profiles for various platforms.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        delt
        wrote on 24 Jan 2016, 01:13 last edited by
        #3

        Thanks for the info.

        That article seems to be written before 4.8.0 was released. Is this info still current? In particular,

        "This is known to work under Linux but Windows and Mac OSX have some issues inside of Qt for creating Core Profile contexts. "

        1 Reply Last reply
        0
        • D Offline
          D Offline
          delt
          wrote on 24 Jan 2016, 06:40 last edited by delt
          #4

          Making progress.... this line was missing from my main window constructor:

          glformat.setVersion (3, 3);
          

          ...however that causes other problems:

          On Linux, my proxy widgets are no longer appearing. This occurs even if my draw function does nothing. Without the above line, the proxy widgets appear fine.

          On OSX, the program outputs a bunch of errors about shaders not compiling (#version line missing?) and then segfaults. My own shader seems to compile fine, though. Without the above line, OpenGL initialization fails, and my program has to revert to software rendering.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 24 Jan 2016, 21:05 last edited by
            #5

            This mailing list thread might give you some more information to go further.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            5/5

            24 Jan 2016, 21:05

            • Login

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