2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:04:56 +00:00

General: Mark CMaterialFilter instances constexpr where applicable

Allows omission of runtime overhead.
This commit is contained in:
Lioncash
2020-05-07 14:08:29 -04:00
parent 33411ceeca
commit 579ae79291
2 changed files with 2 additions and 2 deletions

View File

@@ -302,7 +302,7 @@ bool CActorLights::BuildAreaLightList(const CStateManager& mgr, const CGameArea&
x0_areaLights.clear();
/* Filter for performing final light visibility test */
CMaterialFilter filter = CMaterialFilter::MakeIncludeExclude(
constexpr auto filter = CMaterialFilter::MakeIncludeExclude(
CMaterialList(EMaterialTypes::Solid),
CMaterialList(EMaterialTypes::Projectile, EMaterialTypes::ProjectilePassthrough, EMaterialTypes::SeeThrough));
u32 mostSigLightIdx = 0;