File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1164,6 +1164,7 @@ enum
11641164 bool entitySpriteFaceViewDirection;
11651165
11661166 int autoSpriteMode;
1167+ bool autoSpriteWarned = false ;
11671168
11681169 uint8_t numDeforms;
11691170 deformStage_t deforms[ MAX_SHADER_DEFORMS ];
Original file line number Diff line number Diff line change @@ -586,12 +586,13 @@ static void Tess_SurfaceSprite()
586586
587587 radius = backEnd.currentEntity ->e .radius ;
588588
589- if ( tess.surfaceShader ->autoSpriteMode != 0 )
589+ if ( tess.surfaceShader ->autoSpriteMode != 0 && !tess. surfaceShader -> autoSpriteWarned )
590590 {
591591 // This function does similarly to autosprite mode 1. Autospriting it again would be a
592592 // waste and would probably lose the rotation angle
593593 Log::Warn ( " RT_SPRITE entity should NOT configure its shader (%s) as autosprite" ,
594594 tess.surfaceShader ->name );
595+ tess.surfaceShader ->autoSpriteWarned = true ;
595596 }
596597
597598 VectorSubtract ( backEnd.currentEntity ->e .origin , backEnd.viewParms .orientation .origin , delta );
You can’t perform that action at this time.
0 commit comments