fix: cmake option "OPENGL_VERSION" doesn't work (#3170)

This commit is contained in:
Roy Qu 2023-07-14 03:20:06 +08:00 committed by GitHub
parent bc9c063254
commit 22895ba14f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ elseif ("${PLATFORM}" MATCHES "DRM")
endif () endif ()
if (NOT ${OPENGL_VERSION}) if (NOT ${OPENGL_VERSION} MATCHES "OFF")
set(${SUGGESTED_GRAPHICS} "${GRAPHICS}") set(${SUGGESTED_GRAPHICS} "${GRAPHICS}")
if (${OPENGL_VERSION} MATCHES "4.3") if (${OPENGL_VERSION} MATCHES "4.3")
set(GRAPHICS "GRAPHICS_API_OPENGL_43") set(GRAPHICS "GRAPHICS_API_OPENGL_43")