From bb62a392789aa13f79f9a3274407eada6098f02c Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 2 Sep 2014 03:18:27 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4740 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_mesh.c | 6 +++++- engine/gl/gl_shadow.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index cd38fe0d7..de314a0b0 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -1808,7 +1808,8 @@ qboolean Alias_GAliasBuildMesh(mesh_t *mesh, vbo_t **vbop, galiasinfo_t *inf, in lerpcutoff = inf->lerpcutoff * r_lerpmuzzlehack.value; - if (Sh_StencilShadowsActive() || qrenderer != QR_OPENGL || e->fatness || lerpcutoff) +#ifndef SERVERONLY + if (qrenderer != QR_OPENGL || Sh_StencilShadowsActive() || e->fatness || lerpcutoff) { mesh->xyz2_array = NULL; mesh->xyz_blendw[0] = 1; @@ -1816,6 +1817,7 @@ qboolean Alias_GAliasBuildMesh(mesh_t *mesh, vbo_t **vbop, galiasinfo_t *inf, in R_LerpFrames(mesh, &g1->poseofs[frame1], &g2->poseofs[frame2], 1-lerp, e->fatness, lerpcutoff); } else +#endif { galiaspose_t *p1 = &g1->poseofs[frame1]; galiaspose_t *p2 = &g2->poseofs[frame2]; @@ -2225,6 +2227,7 @@ static void Mod_BuildTriangleNeighbours ( int *neighbours, index_t *indexes, int } void Mod_CompileTriangleNeighbours(galiasinfo_t *galias) { +#ifndef SERVERONLY if (Sh_StencilShadowsActive()) { int *neighbours; @@ -2232,6 +2235,7 @@ void Mod_CompileTriangleNeighbours(galiasinfo_t *galias) galias->ofs_trineighbours = neighbours; Mod_BuildTriangleNeighbours(neighbours, galias->ofs_indexes, galias->numindexes/3); } +#endif } typedef struct diff --git a/engine/gl/gl_shadow.c b/engine/gl/gl_shadow.c index 94e30fbac..6f640767d 100644 --- a/engine/gl/gl_shadow.c +++ b/engine/gl/gl_shadow.c @@ -3510,7 +3510,8 @@ qboolean Sh_StencilShadowsActive(void) //if shadowmapping is forced on all lights then we don't need special depth stuff // if (r_shadow_shadowmapping.ival) // return false; - + if (isDedicated) + return false; return (r_shadow_realtime_dlight.ival && r_shadow_realtime_dlight_shadows.ival) || (r_shadow_realtime_world.ival && r_shadow_realtime_world_shadows.ival); #else