From bf614426f3d69921dac23c053d1bc2ef1b6a7bb1 Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Sun, 16 Feb 2003 20:02:07 +0000 Subject: [PATCH] Give an error on unknown blend functions --- shaders.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shaders.c b/shaders.c index 7e41621..0c1609c 100644 --- a/shaders.c +++ b/shaders.c @@ -385,12 +385,15 @@ char *ParseStage (char *data, shader_t *shader) stage.src_blend = GL_ONE; stage.dst_blend = GL_ONE; } else { + Con_Printf("Unknown blend func %s\n",com_token); stage.src_blend = -1; stage.dst_blend = -1; } } else { GET_SAFE_TOKEN; - stage.dst_blend = SC_BlendModeForName(com_token); + stage.dst_blend = SHADER_BlendModeForName(com_token); + if (stage.dst_blend < 0) + Con_Printf("Unknown blend func %s\n",com_token); } } else if (!strcmp(command, "alphafunc")) {