[iortcw] 135/152: All: Rend2: Workaround for multiple deforms on MD3 mesh

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 51422d8294ed7988d6a78c9d767212df593626cd
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Wed Oct 19 18:06:58 2016 -0400

    All: Rend2: Workaround for multiple deforms on MD3 mesh
---
 MP/code/rend2/tr_surface.c | 6 ++++++
 SP/code/rend2/tr_surface.c | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/MP/code/rend2/tr_surface.c b/MP/code/rend2/tr_surface.c
index 19a1717..278b370 100644
--- a/MP/code/rend2/tr_surface.c
+++ b/MP/code/rend2/tr_surface.c
@@ -1325,6 +1325,12 @@ void RB_SurfaceVaoMdvMesh(srfVaoMdvMesh_t * surface)
 
 	GLimp_LogComment("--- RB_SurfaceVaoMdvMesh ---\n");
 
+	if (ShaderRequiresCPUDeforms(tess.shader))
+	{
+		RB_SurfaceMesh(surface->mdvSurface);
+		return;
+	}
+
 	if(!surface->vao)
 		return;
 
diff --git a/SP/code/rend2/tr_surface.c b/SP/code/rend2/tr_surface.c
index 1027a0a..f77ebf2 100644
--- a/SP/code/rend2/tr_surface.c
+++ b/SP/code/rend2/tr_surface.c
@@ -1323,6 +1323,12 @@ void RB_SurfaceVaoMdvMesh(srfVaoMdvMesh_t * surface)
 
 	GLimp_LogComment("--- RB_SurfaceVaoMdvMesh ---\n");
 
+	if (ShaderRequiresCPUDeforms(tess.shader))
+	{
+		RB_SurfaceMesh(surface->mdvSurface);
+		return;
+	}
+
 	if(!surface->vao)
 		return;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list