diff options
author | Jesse Yurkovich <jesse.y@gmail.com> | 2022-10-09 10:34:59 +0300 |
---|---|---|
committer | Jesse Yurkovich <jesse.y@gmail.com> | 2022-10-09 10:34:59 +0300 |
commit | af34c13da4e4566d62c60a7c6aec33f4481bed3c (patch) | |
tree | de98f81894ef9e7f3284430179c7361ed2aa30aa /source/blender | |
parent | cee6c07f9ee85ac68d0479638af832e4fc97c49f (diff) |
Cleanup: Remove data duplication from large array in eevee_camera.hh
Use `inline constexpr` instead of `static const` to prevent these
variables from being duplicated in each translation unit that includes
the eevee_camera.hh header (was included into 17 different object files
with MSVC).
Differential Revision: https://developer.blender.org/D16200
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_camera.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_camera.hh b/source/blender/draw/engines/eevee_next/eevee_camera.hh index aaef0f5898d..c1d65dbf31e 100644 --- a/source/blender/draw/engines/eevee_next/eevee_camera.hh +++ b/source/blender/draw/engines/eevee_next/eevee_camera.hh @@ -13,7 +13,7 @@ namespace blender::eevee { class Instance; -static const float cubeface_mat[6][4][4] = { +inline constexpr float cubeface_mat[6][4][4] = { /* Pos X */ {{0.0f, 0.0f, -1.0f, 0.0f}, {0.0f, -1.0f, 0.0f, 0.0f}, |