summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-04 23:00:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-04 23:00:06 +0000
commit6605548066bbff052ea1c1f7e4fec14446fa7727 (patch)
treedf30b7fb0d8579d3e12ba5341600fb8b9c135c14 /Graphics/GraphicsEngineOpenGL
parentAdded rasterizer state, depth state and blend state validation and correction... (diff)
downloadDiligentCore-6605548066bbff052ea1c1f7e4fec14446fa7727.tar.gz
DiligentCore-6605548066bbff052ea1c1f7e4fec14446fa7727.zip
Silenced OpenGL deprecation warnings on Mac
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
index bbaf59c5..3097c7fc 100644
--- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
+++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
@@ -234,6 +234,10 @@ PUBLIC
)
target_compile_definitions(Diligent-GraphicsEngineOpenGL-shared PUBLIC ENGINE_DLL=1)
+if(PLATFORM_MACOS)
+ # Silence OpenGL deprecation warnings
+ target_compile_definitions(Diligent-GraphicsEngineOpenGL-static PUBLIC GL_SILENCE_DEPRECATION)
+endif()
if(PLATFORM_WIN32)