Fix OpenGL 4.3 graphics option in CMake (#2427)
This commit is contained in:
parent
aa8af23f10
commit
07240b96ad
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ endif ()
|
|||
|
||||
if (${OPENGL_VERSION})
|
||||
set(${SUGGESTED_GRAPHICS} "${GRAPHICS}")
|
||||
if (${OPENGL_VERSION} MATCHES "3.3")
|
||||
if (${OPENGL_VERSION} MATCHES "4.3")
|
||||
set(GRAPHICS "GRAPHICS_API_OPENGL_43")
|
||||
elseif (${OPENGL_VERSION} MATCHES "3.3")
|
||||
set(GRAPHICS "GRAPHICS_API_OPENGL_33")
|
||||
elseif (${OPENGL_VERSION} MATCHES "2.1")
|
||||
set(GRAPHICS "GRAPHICS_API_OPENGL_21")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue