From 277d773b2017dfe4daec9313608a71119f5e2b0f Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 11 Mar 2014 12:38:53 -0500 Subject: Parse q3map_sunExt in OpenGL1 too Used for drawing sun, which is supported by both OpenGL1 and OpenGL2. OpenGL2 already parses it. --- src/renderergl1/tr_shader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderergl1/tr_shader.c b/src/renderergl1/tr_shader.c index a6115f16..116eee94 100644 --- a/src/renderergl1/tr_shader.c +++ b/src/renderergl1/tr_shader.c @@ -1477,7 +1477,7 @@ static qboolean ParseShader( char **text ) continue; } // sun parms - else if ( !Q_stricmp( token, "q3map_sun" ) ) { + else if ( !Q_stricmp( token, "q3map_sun" ) || !Q_stricmp( token, "q3map_sunExt" ) ) { float a, b; token = COM_ParseExt( text, qfalse ); @@ -1504,6 +1504,9 @@ static qboolean ParseShader( char **text ) tr.sunDirection[0] = cos( a ) * cos( b ); tr.sunDirection[1] = sin( a ) * cos( b ); tr.sunDirection[2] = sin( b ); + + SkipRestOfLine( text ); + continue; } else if ( !Q_stricmp( token, "deformVertexes" ) ) { ParseDeform( text ); -- cgit