remove a warning when compiling with GL3 core profile and macOS

This commit is contained in:
Mathieu MARACHE 2016-08-05 23:04:03 +02:00 committed by Robert Osfield
parent 3745b958e5
commit 46c86f53ac

View File

@ -483,6 +483,9 @@ ENDIF()
IF ((OPENGL_PROFILE STREQUAL "GL3") OR (OPENGL_PROFILE STREQUAL "GLCORE"))
OPTION(OSG_GL3_AVAILABLE "Set to OFF to disable use of OpenGL 3.x functions library." ON )
if(APPLE)
add_definitions(-DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED)
endif()
ELSE()
OPTION(OSG_GL3_AVAILABLE "Set to OFF to disable use of OpenGL 3.x functions library." OFF )
ENDIF()