diff --git a/.gitignore b/.gitignore index 0e0aeca32..ca601d420 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,11 @@ cmake_install.cmake # Visual Studio 2015/2017 cache/options directory .vs/ + +# VS Code project +.vscode/ +build/ + # Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ diff --git a/HPL2/core/CMakeLists.txt b/HPL2/core/CMakeLists.txt index 13fbec572..915950893 100644 --- a/HPL2/core/CMakeLists.txt +++ b/HPL2/core/CMakeLists.txt @@ -244,6 +244,8 @@ FindPrebuiltLibrary(GLEW_LIBRARY GLEW) FindPrebuiltLibrary(THEORA_LIBRARY theora) FindPrebuiltLibrary(DEVIL_LIBRARY IL) +set(OpenGL_GL_PREFERENCE LEGACY) + find_package(OpenGL) mark_as_advanced(NEWTON_LIBRARY ANGELSCRIPT_LIBRARY FBX_LIBRARY GLEW_LIBRARY THEORA_LIBRARY DEVIL_LIBRARY)