diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-28 10:29:47 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-28 10:29:47 +1100 |
commit | 10edbdc399a52958f59ee0d8b9cc216a1bcb1441 (patch) | |
tree | 65cd49d32b56335a74961d640c37af48e5cb0a72 /source/core | |
parent | aba77ed2b434e5aa953b553fc71f70cea34de290 (diff) |
disable GCC unmath optimization in non-nearest scaling funcs
Diffstat (limited to 'source/core')
-rw-r--r-- | source/core/StarImageProcessing.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index 9f64124..d599c2c 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -25,6 +25,8 @@ Image scaleNearest(Image const& srcImage, Vec2F const& scale) { return destImage; } +#pragma GCC push_options +#pragma GCC optimize("-fno-unsafe-math-optimizations") Image scaleBilinear(Image const& srcImage, Vec2F const& scale) { Vec2U srcSize = srcImage.size(); Vec2U destSize = Vec2U::round(vmult(Vec2F(srcSize), scale)); @@ -100,6 +102,7 @@ Image scaleBicubic(Image const& srcImage, Vec2F const& scale) { return destImage; } +#pragma GCC pop_options StringList colorDirectivesFromConfig(JsonArray const& directives) { List<String> result; |