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

Unity Attempting to use OpenGLCore even when set to Metal

Discussion in 'General Graphics' started by BrodyB, Apr 7, 2020.

  1. BrodyB

    BrodyB

    Joined:
    Dec 17, 2014
    Posts:
    10
    Hey folks!

    I'm seeing an issue on a Mac running macOS High Sierra (10.13.6) and Unity 2019.3.6f1 on a project using HDRP where we've set our Project Settings to use Metal only, but nothing renders properly in the Scene View and we're getting spammed with console messages:
    • Platform StandaloneOSX with device OpenGLCore is not supported, no rendering will occur (UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
    • Use Metal API instead (UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
    When attempting to create a build to get more information, we get this:

    BuildFailedException: The platform StandaloneOSX with the graphic API OpenGLCore is not supported with High Definition Render Pipeline
    UnityEditor.Rendering.HighDefinition.HDRPPreprocessBuild.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.1.8/Editor/BuildProcessors/HDRPPreprocessBuild.cs:50)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:411)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:391)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:123)​

    I don't know why it's trying to use OpenGLCore, as the Project Settings specifically don't have it set.



    Is there anything I"m doing wrong?

    Thanks!
     
  2. BrodyB

    BrodyB

    Joined:
    Dec 17, 2014
    Posts:
    10
    Sorry to bump this, but I still can't find a reason why Unity would insist on using OpenGLCore when it's specifically set to use Metal, and it's really hindering us.
     
  3. BrodyB

    BrodyB

    Joined:
    Dec 17, 2014
    Posts:
    10
    SOLVED

    This is happening on Macs built before 2012, because they have hardware older than what Metal supports. :/
     
    maldewar likes this.