From 4405abcc9355601eb4719ab8ac0af15eb17d0a02 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 8 Jun 2014 20:27:35 +0000 Subject: [PATCH] added nodraw2. exactly the same as nodraw except that q3map2 doesn't understand it. this allows it to be used with 'surfaceparm meshcollide' for solid invisible surfaces. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4684 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index c6d4372ba..fdd8e6cfb 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -797,6 +797,8 @@ static void Shader_SurfaceParm ( shader_t *shader, shaderpass_t *pass, char **pt token = Shader_ParseString ( ptr ); if ( !Q_stricmp( token, "nodraw" ) ) shader->flags |= SHADER_NODRAW; + else if ( !Q_stricmp( token, "nodraw2" ) ) + shader->flags |= SHADER_NODRAW; else if ( !Q_stricmp( token, "nodlight" ) ) shader->flags |= SHADER_NODLIGHT; }