summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_animation.c')
-rw-r--r--src/renderergl2/tr_animation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderergl2/tr_animation.c b/src/renderergl2/tr_animation.c
index a74ac2f5..2f3db8f6 100644
--- a/src/renderergl2/tr_animation.c
+++ b/src/renderergl2/tr_animation.c
@@ -194,7 +194,8 @@ void R_MDRAddAnimSurfaces( trRefEntity_t *ent ) {
header = (mdrHeader_t *) tr.currentModel->modelData;
- personalModel = (ent->e.renderfx & RF_THIRD_PERSON) && !tr.viewParms.isPortal;
+ personalModel = (ent->e.renderfx & RF_THIRD_PERSON) && !(tr.viewParms.isPortal
+ || (tr.viewParms.flags & (VPF_SHADOWMAP | VPF_DEPTHSHADOW)));
if ( ent->e.renderfx & RF_WRAP_FRAMES )
{