diff options
| author | GoldenThumbs <[email protected]> | 2022-04-05 02:59:53 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-05 09:59:53 +0200 |
| commit | 07240b96ad7c689119e70714f3fb39852b3657b7 (patch) | |
| tree | 24e0bc21275f03f3f4fcd7f35f9f43fe399151c1 /cmake | |
| parent | aa8af23f104b857c84c643d1d29fd02084eac00a (diff) | |
| download | raylib-07240b96ad7c689119e70714f3fb39852b3657b7.tar.gz raylib-07240b96ad7c689119e70714f3fb39852b3657b7.zip | |
Fix OpenGL 4.3 graphics option in CMake (#2427)
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/LibraryConfigurations.cmake | 4 |
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") |
