Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to: Easily bypass all the OpenGL 4.1 errors

Discussion in 'Editor & General Support' started by Jaimi, Dec 14, 2015.

  1. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,171
    On OSX, the default renderer is now OpenGL Core. This uses OpenGL 4.1, and is fraught with issues at this time (at least on iMacs). The response from unity was "Use the command line option to force the old OpenGL and everything will be fine", and that is true, but it's a pain to do so on OSX.

    Here's an easier method:

    Load your project without any command line arguments from the icon.
    Go to Build Settings and choose Player Settings.

    Under "Other Settings", uncheck Auto Graphics API for Mac.
    Drag "OpenGL2" above "OpenGLCore".
    Save your project.
    Exit unity and reload project - should say "Open GL 2.1" at the top, and Unity should be back to normal.


    Done!
     
    Last edited: Dec 14, 2015
    Shushustorm likes this.
  2. Glockenbeat

    Glockenbeat

    Joined:
    Apr 24, 2012
    Posts:
    669
    I was trying to build my game on MacOS for quite a while now, tried several things including deleting library and so on and so forth, but still, in random scenes when it comes to lightning (and reflection probes especially) Unity just hung and did not continue.

    This fixed it! Thanks a lot!
     
  3. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,171
    You're welcome, glad I helped someone! :)