Give an error on unknown blend functions

This commit is contained in:
cholleme 2003-02-16 20:02:07 +00:00
parent 1ebf645d9e
commit bf614426f3

View file

@ -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")) {