Give an error on unknown blend functions
This commit is contained in:
parent
1ebf645d9e
commit
bf614426f3
1 changed files with 4 additions and 1 deletions
|
@ -385,12 +385,15 @@ char *ParseStage (char *data, shader_t *shader)
|
||||||
stage.src_blend = GL_ONE;
|
stage.src_blend = GL_ONE;
|
||||||
stage.dst_blend = GL_ONE;
|
stage.dst_blend = GL_ONE;
|
||||||
} else {
|
} else {
|
||||||
|
Con_Printf("Unknown blend func %s\n",com_token);
|
||||||
stage.src_blend = -1;
|
stage.src_blend = -1;
|
||||||
stage.dst_blend = -1;
|
stage.dst_blend = -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
GET_SAFE_TOKEN;
|
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")) {
|
} else if (!strcmp(command, "alphafunc")) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue