Commit Graph

73 Commits (7d9d377575ff6aac58561c670c8716314386700a)

Author SHA1 Message Date
AnyOldName3 28131fd62b Fixes for a whole bunch of warnings
These warnings were always enabled, but we didn't see them due to https://gitlab.com/OpenMW/openmw/-/issues/7882.
I do not fully understand the cause of 7822 as I can't repro it in a minimal CMake project.

Some of these fixes are thought through.
Some are sensible best guesses.
Some are kind of a stab in the dark as I don't know whether there was a
possible bug the warning was telling me about that I've done nothing to
help by introducing a static_cast.

Nearly all of these warnings were about some kind of narrowing
conversion, so I'm not sure why they weren't firing with GCC and Clang,
which have -Wall -Wextra -pedantic set, which should imply -Wnarrowing,
and they can't have been affected by 7882.

There were also some warnings being triggered from Boost code.
The vast majority of library headers that do questionable things weren't
firing warnings off, but for some reason, /external:I wasn't putting
these Boost headers into external mode.

We need these warnings dealt with one way or another so we can switch
the default Windows CI from MSBuild (which doesn't do ccache) to Ninja
(which does).
I have the necessary magic for that on a branch, but the branch won't
build because of these warnings.
10 months ago
elsid cc35df9409
Use VFS::Path::Normalized for fx::Technique file path 10 months ago
Alexei Kotov 422e455157 Actually normalize the sun position exposed to post-processing 11 months ago
psi29a 6b9fd12ab7 Merge branch 'fix_ubsan_warnings' into 'master'
Fix ubsan warnings

See merge request OpenMW/openmw!3772
12 months ago
elsid dd706aab0e
Add missing SubPass::mMinMap initialization 12 months ago
elsid 35da9f8c50
Remove redundant SizeProxy and RenderTarget constructors 12 months ago
Cody Glassman 187f63d3d3 support postprocess distortion 1 year ago
uramer d6220b7d03 Merge branch 'postprocess_version' into 'master'
[Postprocessing] Add an API version, mirroring Lua

See merge request OpenMW/openmw!3552
1 year ago
Cody Glassman de8c93d049 [Postprocessing] Add an API version, mirroring Lua 1 year ago
Cody Glassman 85fcfbafda apply same logic to render targets, remove UB 1 year ago
Cody Glassman 0f53088014 re-sync docs with postprocessing API 1 year ago
Cody Glassman 9a5fa9b8d6 fix persistent buffers and glsl_version 1 year ago
Alexei Kotov d2a79c4205 Use a more clear error message for clamp wrap mode 1 year ago
Andrei Kortunov fae9ced5f9 Do not copy a static string 1 year ago
Andrei Kortunov d3d7a663c6 Move some objects instead of copying 1 year ago
elsid c9c32d9a0d
Cleanup includes 1 year ago
Bret Curtis d582a26e4c Set the default to CLAMP_TO_EDGE in case it was not explicity called for 2 years ago
Bret Curtis 30da8a27ba small revert, "It is copying a texture, it is not a default initialized one. The source texture may or may not want GL_CLAMP_TO_EDGE." 2 years ago
Bret Curtis 0b1a0ad1a8 only 4 deep 2 years ago
Bret Curtis ff6944701f Be more explicit about use of CLAMP_TO_EDGE instead of defaulting to GL CLAMP 2 years ago
elsid 04215ca9ec
Use settings values for Fog settings 2 years ago
Petr Mikheev 618b912a20 Dehardcode non-game-specific localization GMSTs; Update l10n files. 2 years ago
glassmancody.info 564c408663 expose more uniforms to postprocessing 2 years ago
glassmancody.info 87c0a6e6dc fix line numbers being off by one for each jump block 2 years ago
AnyOldName3 15c51dcbbc Restore false-positive unused includes
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.
2 years ago
AnyOldName3 77de37b1ed Revert "Merge branch 'fix_macos_build' into 'master'"
As well as fixing the MacOS build, it meddled with a bunch of files that
already did the right thing.

This reverts commit 8162541a14, reversing
changes made to e16c451d08.
2 years ago
elsid c324482338
Use separate header to define missing GL constants 2 years ago
elsid 843753da14
Remove unused includes 2 years ago
jvoisin 3cbf1dc042 First pass with include-what-you-use 2 years ago
Project579 6fe89ff22b Fix dumb regression, initialize "std::filesystem::file_time_type" with "clock::now()". 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
elsid 52b7b66e9f
Add comma to the last array element to prevent putting multiple elements on a single line 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
Mads Buvik Sandvei 70e1efdd47 omw_GetWorldPosFromUV() should use omw_GetDepth() 2 years ago
elsid cc8c7002ea
Cleanup components includes 2 years ago
Andrei Kortunov e3ad30a517 Do not copy data when it is not needed 2 years ago
psi29a bb9884c024 Merge branch 'split_stringops' into 'master'
Split components/misc/stringops.hpp into multiple headers

See merge request OpenMW/openmw!2233
2 years ago
cody glassman ac4b29be08 cleanup default shaders and remove confusing main shader 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago
psi29a 9ba3ab2be9 Merge branch 'post_fog' into 'master'
[Postprocessing]  API to work with fog

See merge request OpenMW/openmw!2212
2 years ago
Andrei Kortunov 5bfca57835 Add a way to check if water is enabled in post processing shaders 2 years ago
Andrei Kortunov 888f4d2ac1 Add a post processing API to work with fog 2 years ago
Andrei Kortunov e0c05a15fb Post processing shaders localization 2 years ago
Andrei Kortunov 38042fd7a2 Init missing variables 3 years ago
Andrei Kortunov aed0da46a9 Check a result of dynamic_cast 3 years ago
elsid bef15edf0b
Remove redundant ostream, istream, iostream and sstream includes
* Replace by std::to_string and operator+ where possible.
* Move the code requiring to include <sstream> from .hpp to .cpp files.
3 years ago
Andrei Kortunov d2a1cc954f Remove unused variable 3 years ago
Andrei Kortunov aa349f2ed9 Initialize some missing variables 3 years ago
Mads Buvik Sandvei b0e4c7e76a [Postprocessing] Stereo integration 3 years ago