-dedicated server crash

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1412 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-04 18:07:32 +00:00
parent c815c72a23
commit 953e87faaf
1 changed files with 6 additions and 3 deletions

View File

@ -4045,11 +4045,14 @@ void GL_LoadQ3Model(model_t *mod, void *buffer)
Q_strncpyz(skin->name, shadname, sizeof(skin->name));
#ifdef Q3SHADERS
texnum->shader = R_RegisterSkin(shadname);
if (qrenderer)
{
texnum->shader = R_RegisterSkin(shadname);
if (r_shadows.value) //real-time shadows requires a texture to lighten the model with, even if it has a shader.
if (r_shadows.value) //real-time shadows requires a texture to lighten the model with, even if it has a shader.
//fixme: this should be read from the shader.
texnum->base = Mod_LoadHiResTexture(shadname, "models", true, true, true);
texnum->base = Mod_LoadHiResTexture(shadname, "models", true, true, true);
}
#else
texnum->base = Mod_LoadHiResTexture(shadname, "models", true, true, true);