diff options
author | AnyOldName3 <krizdjali@gmail.com> | 2022-10-13 00:49:24 +0100 |
---|---|---|
committer | AnyOldName3 <krizdjali@gmail.com> | 2022-10-13 00:49:24 +0100 |
commit | 15c51dcbbc36b2ab1100aa4db5157e8f91e9b7e8 (patch) | |
tree | 1fd166800a6b28faf40476bb91712a2cf5666138 | |
parent | 77de37b1edccb956fb36b51fdd22f60f5c8f116d (diff) |
Restore false-positive unused includesfix-macos-build-without-refactoring-a-bunch-of-unrelated-files
They're needed on MacOS as SDL_opengl_gletx.h doesn't define them there.
They don't actually work on MacOS, so long-term, the code that uses
these defines should be changed to use #ifdef to check they're available
before using them.
-rw-r--r-- | apps/openmw/mwrender/postprocessor.cpp | 1 | ||||
-rw-r--r-- | components/fx/parse_constants.hpp | 2 | ||||
-rw-r--r-- | components/stereo/frustum.cpp | 1 | ||||
-rw-r--r-- | components/stereo/stereomanager.cpp | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/apps/openmw/mwrender/postprocessor.cpp b/apps/openmw/mwrender/postprocessor.cpp index ebaa0b3464..b24a083fbf 100644 --- a/apps/openmw/mwrender/postprocessor.cpp +++ b/apps/openmw/mwrender/postprocessor.cpp @@ -15,6 +15,7 @@ #include <components/misc/strings/algorithm.hpp> #include <components/misc/strings/lower.hpp> #include <components/resource/scenemanager.hpp> +#include <components/sceneutil/color.hpp> #include <components/sceneutil/depth.hpp> #include <components/sceneutil/nodecallback.hpp> #include <components/settings/settings.hpp> diff --git a/components/fx/parse_constants.hpp b/components/fx/parse_constants.hpp index 2434287643..3c9e3b59c8 100644 --- a/components/fx/parse_constants.hpp +++ b/components/fx/parse_constants.hpp @@ -9,6 +9,8 @@ #include <osg/Image> #include <osg/Texture> +#include <components/sceneutil/color.hpp> + #include "technique.hpp" namespace fx diff --git a/components/stereo/frustum.cpp b/components/stereo/frustum.cpp index e99402e179..cf8a7e8c30 100644 --- a/components/stereo/frustum.cpp +++ b/components/stereo/frustum.cpp @@ -15,6 +15,7 @@ #include <map> #include <string> +#include <components/sceneutil/color.hpp> #include <components/sceneutil/mwshadowtechnique.hpp> #include <components/settings/settings.hpp> diff --git a/components/stereo/stereomanager.cpp b/components/stereo/stereomanager.cpp index f8e24cfc07..83074bef23 100644 --- a/components/stereo/stereomanager.cpp +++ b/components/stereo/stereomanager.cpp @@ -19,6 +19,7 @@ #include <components/misc/constants.hpp> +#include <components/sceneutil/color.hpp> #include <components/sceneutil/depth.hpp> #include <components/sceneutil/statesetupdater.hpp> |