Why does OSX PA use OpenGL 2.1 instead of the supported 3.2?

Discussion in 'Mac and Linux' started by aeonsim, October 8, 2013.

  1. aeonsim

    aeonsim Active Member

    Messages:
    195
    Likes Received:
    42
    So why is PA using OpenGL 2.1 instead of 3.2?

    ie:
    20:41:22.378] INFO GL_VENDOR: ATI Technologies Inc.
    [20:41:22.378] INFO GL_RENDERER: AMD Radeon HD 6770M OpenGL Engine
    [20:41:22.378] INFO GL_VERSION: 2.1 ATI-1.8.19
    [20:41:22.378] INFO GL_SHADING_LANGUAGE_VERSION: 1.20

    I see looking around people have issues getting there program to correctly call 3.2 on OSX but it is supported by OSX 10.8.4 & the 6770M according to https://developer.apple.com/graphicsimaging/opengl/capabilities/ and it appears that correctly switching the the 3.2 context would solve some of the problems OSX is having with objects etc

    Is there some particular reason for restricting the Game to OpenGl 2.1?
    glfwWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
    glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
    cwarner7264 and SXX like this.
  2. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Good find, Aeonism
  3. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Interesting find, it's something I don't checked actually. :oops:
    Want to believe you'll get GL3 and GLSL 1.3 shaders will work on all platforms then.
  4. aeonsim

    aeonsim Active Member

    Messages:
    195
    Likes Received:
    42
    Yes that would be nice, it seems Uber isn't currently calling the correct OpenGL 3.2 context in OSX when the game starts so the V1.3 shaders don't work. If they can fix that then hopefully the standard 1.3 shaders would start working on OSX as well.
  5. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Seems like I understand why exactly problem with features occur only in game, but not in editor.
    I played with drivers debug a bit and it's looks like game compile shaders twice. It's might mean that game creating two different OpenGL contexts, one one for system editor and one for actual game.

    And obviously each of them might use different version of OpenGL.
  6. aeonsim

    aeonsim Active Member

    Messages:
    195
    Likes Received:
    42
    That makes a lot lot of sense and would explain the various things I see. Hopefully they'll change it so it uses the 3.2 profile for everything. You think it's worth putting up a bug report for?
  7. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    First I need to be 100% sure that I'm right, then I'll report it in some form.
    I'll spend more time with debugger and then post back.
  8. aeonsim

    aeonsim Active Member

    Messages:
    195
    Likes Received:
    42
    Still doing this with the most recent patch.
  9. aeonsim

    aeonsim Active Member

    Messages:
    195
    Likes Received:
    42
    So with the release of OSX 10.9 they now support opengl 4.1, and considering 10.9 is a free upgrade for all 10.6-10.8 users Uber really should target it as it's rendering pipeline.

Share This Page