1
0
Fork 0
forked from fte/fteqw

-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

View file

@ -4045,11 +4045,14 @@ void GL_LoadQ3Model(model_t *mod, void *buffer)
Q_strncpyz(skin->name, shadname, sizeof(skin->name));
#ifdef Q3SHADERS
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.
//fixme: this should be read from the shader.
texnum->base = Mod_LoadHiResTexture(shadname, "models", true, true, true);
}
#else
texnum->base = Mod_LoadHiResTexture(shadname, "models", true, true, true);