summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGoldenThumbs <[email protected]>2022-04-05 02:59:53 -0500
committerGitHub <[email protected]>2022-04-05 09:59:53 +0200
commit07240b96ad7c689119e70714f3fb39852b3657b7 (patch)
tree24e0bc21275f03f3f4fcd7f35f9f43fe399151c1 /cmake
parentaa8af23f104b857c84c643d1d29fd02084eac00a (diff)
downloadraylib-07240b96ad7c689119e70714f3fb39852b3657b7.tar.gz
raylib-07240b96ad7c689119e70714f3fb39852b3657b7.zip
Fix OpenGL 4.3 graphics option in CMake (#2427)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/LibraryConfigurations.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/LibraryConfigurations.cmake b/cmake/LibraryConfigurations.cmake
index 9227aef0..105b502e 100644
--- a/cmake/LibraryConfigurations.cmake
+++ b/cmake/LibraryConfigurations.cmake
@@ -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")