# Suppress OpenGL deprecated Warning - Mac

**URL:** <https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754>\
**Category:** Blueprint\
**Tags:** MAC-OS-X, opengl, MAC, unreal-engine, Blueprint, question\
**Created:** [April 2, 2017, 4:42pm UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754 "2017-04-02T16:42:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickyc95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nickyc95](https://forums.unrealengine.com/u/nickyc95)\
**Post date:** [April 2, 2017, 4:42pm UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754/1 "2017-04-02T16:42:56Z")

</div>

When running on an older Mac OS, the application falls back to running OpenGL and displays a warning message explaining that it is deprecated; but allows you to continue and load it up.

When submitting to Apple, the reviewer rejected the application because of this warning. Now I have spoken to one of the Unreal Staff who said I am able to suppress the warning message.

I found the setting that can be used, however when I tested it, it didn’t work. (see below) I added the MacOpenGLDeprecated=True to the GameUserSettings.ini

Anyone know how I can do this (without removing the message popup from the engine source) ?

```
const static FString ConfigSection = TEXT("SuppressableDialogs");
     
 bool bShouldSuppressDialog = false;
 
 if (GConfig)
 {
     GConfig->GetBool( *ConfigSection, TEXT("MacOpenGLDeprecated"), bShouldSuppressDialog, GGameUserSettingsIni );
 }
 FText LocalizedMsg = FText::Format(NSLOCTEXT("MessageDialog", "MessageMacOpenGLDeprecated","Support for running Unreal Engine 4 using OpenGL on macOS is deprecated and will be removed in a future release. Unreal Engine 4 may not render correctly and may run at substantially reduced performance."),Args);
         
if (!bShouldSuppressDialog)
 {
     FPlatformMisc::MessageBoxExt(EAppMsgType::Ok,
                              *LocalizedMsg.ToString(),
                               *NSLOCTEXT("MessageDialog", "TitleMacOpenGLDeprecated", "WARNING: OpenGL on macOS Deprecated").ToString());
}
else
{
             UE_LOG(LogRHI, Warning, TEXT("%s: %s"), *NSLOCTEXT("MessageDialog", "TitleMacOpenGLDeprecated", "WARNING: OpenGL on macOS Deprecated").ToString(), *LocalizedMsg.ToString());
}
```

---

<div class="post-metadata">

**Author:** ![nickyc95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nickyc95](https://forums.unrealengine.com/u/nickyc95)\
**Post date:** [April 3, 2017, 9:01am UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754/2 "2017-04-03T09:01:20Z")

</div>

Bump

Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [April 6, 2017, 10:01pm UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754/3 "2017-04-06T22:01:34Z")

</div>

When you added “MacOpenGLDeprecated=True” to GameUserSettings.ini did you ensure that it was within the “[SuppressableDialogs]” section? It should look like:

```
[SuppressableDialogs]
MacOpenGLDeprecated=True

```

---

<div class="post-metadata">

**Author:** ![nickyc95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nickyc95](https://forums.unrealengine.com/u/nickyc95)\
**Post date:** [April 11, 2017, 9:48am UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754/4 "2017-04-11T09:48:25Z")

</div>

Perfect!

Thank you

---

<div class="post-metadata">

**Author:** ![Diclep](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Diclep](https://forums.unrealengine.com/u/Diclep)\
**Post date:** [December 13, 2019, 11:15am UTC](https://forums.unrealengine.com/t/suppress-opengl-deprecated-warning-mac/389754/5 "2019-12-13T11:15:12Z")

</div>

Hi Nicky95, i’m having the same issue with unreal 4.23.  
i need to cross compile a project on windows for a linux platform that run openGL but i want to suppress that warning.  
Any advice about how i can remove it on windows?  
Thanks a lot!
