Restructed the setting of the OSG_GL_CONTEXT_VERSION to allow script to set it's default value
This commit is contained in:
parent
8636ad8394
commit
85504b45f6
@ -519,12 +519,12 @@ ELSE()
|
|||||||
OPTION(OSG_CPP_EXCEPTIONS_AVAILABLE "Set to OFF to disable compile of OSG components that use C++ exceptions." ON)
|
OPTION(OSG_CPP_EXCEPTIONS_AVAILABLE "Set to OFF to disable compile of OSG components that use C++ exceptions." ON)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(OSG_GL_CONTEXT_VERSION "1.0" CACHE STRING "GL Context String to pass when creaing graphics contexts")
|
|
||||||
|
|
||||||
# Map the OSG_GL*_AVAILABLE settings to OpenGL header settings
|
# Map the OSG_GL*_AVAILABLE settings to OpenGL header settings
|
||||||
|
SET(DEFAULT_GL_CONTEXT_VERSION "1.0")
|
||||||
IF (OSG_GL3_AVAILABLE)
|
IF (OSG_GL3_AVAILABLE)
|
||||||
|
|
||||||
SET(OSG_GL_CONTEXT_VERSION "3.3")
|
SET(DEFAULT_GL_CONTEXT_VERSION "3.3")
|
||||||
|
|
||||||
IF (APPLE)
|
IF (APPLE)
|
||||||
SET(OPENGL_HEADER1 "#include <OpenGL/gl.h>" CACHE STRING "#include<> line for OpenGL Header")
|
SET(OPENGL_HEADER1 "#include <OpenGL/gl.h>" CACHE STRING "#include<> line for OpenGL Header")
|
||||||
@ -577,6 +577,8 @@ ELSE()
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
SET(OSG_GL_CONTEXT_VERSION ${DEFAULT_GL_CONTEXT_VERSION} CACHE STRING "GL Context String to pass when creaing graphics contexts")
|
||||||
|
|
||||||
IF (OSG_GL1_AVAILABLE)
|
IF (OSG_GL1_AVAILABLE)
|
||||||
SET(OSG_GL1_FEATURES 1)
|
SET(OSG_GL1_FEATURES 1)
|
||||||
ELSE()
|
ELSE()
|
||||||
|
Loading…
Reference in New Issue
Block a user