Added videos as textures
Noshadow shader command
This commit is contained in:
parent
99c0669262
commit
9ec55a59b9
1 changed files with 5 additions and 0 deletions
|
@ -542,6 +542,8 @@ char *ParseShader (char *data, shader_t *shader)
|
||||||
data = COM_SkipLine(data);
|
data = COM_SkipLine(data);
|
||||||
} else if (!strcmp(command,"nomipmaps")) {
|
} else if (!strcmp(command,"nomipmaps")) {
|
||||||
shader->mipmap = false;
|
shader->mipmap = false;
|
||||||
|
} else if (!strcmp(command,"noshadow")) {
|
||||||
|
shader->flags |= SURF_NOSHADOW;
|
||||||
} else if (!strcmp(command,"cull")) {
|
} else if (!strcmp(command,"cull")) {
|
||||||
GET_SAFE_TOKEN;
|
GET_SAFE_TOKEN;
|
||||||
if (!strcmp(com_token,"disable")) {
|
if (!strcmp(com_token,"disable")) {
|
||||||
|
@ -639,4 +641,7 @@ void R_ShutdownShaders() {
|
||||||
shaderList = shaderList->next;
|
shaderList = shaderList->next;
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//free video textures and such
|
||||||
|
GL_ShutdownTextures();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue