From 99897e33a1ae8c2f2fb565962f30c54dabc7ff03 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 14 Apr 2013 18:33:27 +0200 Subject: clean up return statements a bit more --- src/renderergl1/tr_shader.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c index f6f5c80d..0c8c59a7 100644 --- a/src/renderergl1/tr_shader.c +++ b/src/renderergl1/tr_shader.c @@ -1669,7 +1669,7 @@ static void ComputeStageIteratorFunc( void ) if ( shader.isSky ) { shader.optimalStageIteratorFunc = RB_StageIteratorSky; - goto done; + return; } if ( r_ignoreFastPath->integer ) @@ -1695,7 +1695,7 @@ static void ComputeStageIteratorFunc( void ) if ( !shader.numDeforms ) { shader.optimalStageIteratorFunc = RB_StageIteratorVertexLitTexture; - goto done; + return; } } } @@ -1721,16 +1721,12 @@ static void ComputeStageIteratorFunc( void ) if ( shader.multitextureEnv ) { shader.optimalStageIteratorFunc = RB_StageIteratorLightmappedMultitexture; - goto done; } } } } } } - -done: - return; } typedef struct { -- cgit