git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6453
d7cf8633-e32d-0410-b094-
e92efae38249
dpsnprintf(loadmodel->brush.skybox, sizeof(loadmodel->brush.skybox), "%s_", shader->skyboxname);
}
}
- else if ((shader->surfaceparms & Q3SURFACEPARM_NODRAW) || shader->numlayers == 0)
+ else if ((out->surfaceflags & Q3SURFACEFLAG_NODRAW) || shader->numlayers == 0)
out->basematerialflags |= MATERIALFLAG_NODRAW;
else if (shader->surfaceparms & Q3SURFACEPARM_LAVA)
out->basematerialflags |= MATERIALFLAG_WATER | MATERIALFLAG_FULLBRIGHT;