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:
parent
cee6c07f9e
commit
af34c13da4
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue