From 07c3112efb582dfe10e47c7c24efbc6602d1f9ac Mon Sep 17 00:00:00 2001 From: MAN-AT-ARMS Date: Sat, 22 Feb 2014 18:48:48 -0500 Subject: OpenGL2: Fix pshadows for MDR models --- src/renderergl2/tr_animation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- cgit