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
This commit is contained in:
Jesse Yurkovich 2022-10-09 00:34:59 -07:00
parent cee6c07f9e
commit af34c13da4
1 changed files with 1 additions and 1 deletions

View File

@ -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},