From 25dfc6080feea3502e85769cad465ca2ec26d73b Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Mon, 18 Aug 2003 10:05:39 +0000 Subject: [PATCH] Added parsing of the nodraw surfaceparm (should be on light shaders) --- shaders.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shaders.c b/shaders.c index 145d099..2fb4dda 100644 --- a/shaders.c +++ b/shaders.c @@ -607,7 +607,10 @@ char *ParseShader (char *data, shader_t *shader) GET_SAFE_TOKEN; normalSpecularStage(shader,command, com_token); } else if (!strcmp(command,"surfaceparm")) { - data = COM_SkipLine(data); + GET_SAFE_TOKEN; + if (!strcmp(com_token, "nodraw")) { + shader->flags |= SURF_NODRAW; + } } else if (!strcmp(command,"nomipmaps")) { shader->mipmap = false; } else if (!strcmp(command,"noshadow")) {