Skip to content

Commit

Permalink
Merge pull request #1037 from namtsui/sp-fullscreen-fix
Browse files Browse the repository at this point in the history
Hack to fix singleplayer crashing when toggling fullscreen.
  • Loading branch information
SomaZ committed Sep 3, 2024
2 parents c11082b + 6f2e758 commit ad98f60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ if(BuildSPEngine OR BuildJK2SPEngine)
"${GSLIncludeDirectory}")

# Dependencies

if (NOT WIN32)
# OpenGL
find_package(OpenGL REQUIRED)
set(SPEngineIncludeDirectories ${SPEngineIncludeDirectories} ${OPENGL_INCLUDE_DIR})
set(SPEngineLibraries ${SPEngineLibraries} ${OPENGL_LIBRARIES})
endif()

# OpenAL (is optionally included for Windows)
if(MSVC AND NOT WIN64)
if(UseInternalOpenAL)
Expand Down

0 comments on commit ad98f60

Please sign in to comment.