Skip to content

Commit f160c3a

Browse files
committed
Fix /listMaterialSystemStages variant descriptions
Also add a static assert that the descriptions list has the right size.
1 parent dae57d8 commit f160c3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/engine/renderer/Material.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,14 @@ static std::string GetStageInfo( const shaderStage_t* pStage, const uint32_t dyn
776776
"base variant ",
777777
"vertex overbright ",
778778
"vertex-lit ",
779-
"fullbright ",
780779
"vertex overbright vertex-lit ",
780+
"fullbright ",
781781
"vertex overbright fullbright ",
782782
"vertex-lit fullbright ",
783783
"vertex overbright vertex-lit fullbright"
784784
};
785+
static_assert( ARRAY_LEN( stageVariants ) == ShaderStageVariant::ALL,
786+
"update stage variant text descriptions" );
785787

786788
uint32_t variants = 0;
787789
for ( int i = 0; i < ShaderStageVariant::ALL && variants < pStage->variantOffset; i++ ) {

0 commit comments

Comments
 (0)