Merge pull request #9419 from liamwhite/no-gl

cmake: make OpenGL loader optional
This commit is contained in:
Mai 2022-12-11 21:09:52 +00:00 committed by GitHub
commit 0c531ff911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -402,7 +402,7 @@ if (MSVC)
copy_yuzu_FFmpeg_deps(yuzu)
endif()
if (NOT APPLE)
if (NOT APPLE AND ENABLE_OPENGL)
target_compile_definitions(yuzu PRIVATE HAS_OPENGL)
endif()