diff options
author | /dev/humancontroller <devhc@example.com> | 2013-04-14 18:33:27 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-05-31 23:12:09 +0100 |
commit | 99897e33a1ae8c2f2fb565962f30c54dabc7ff03 (patch) | |
tree | 0b013233bdc888e297f8a9d941a3f411764c394f | |
parent | 386b7b9ffe6238d5107bbaeec34663248a6aa848 (diff) |
clean up return statements a bit more
-rw-r--r-- | src/renderergl1/tr_shader.c | 8 |
1 files 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 { |