[ioquake3] 23/39: OpenGL2: Workaround for multiple deforms on MD3 mesh. https://github.com/ioquake/ioq3/issues/122
Simon McVittie
smcv at debian.org
Sat Nov 5 20:26:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit ad819edcc488f766acbabb57844fff1c5aa8f2ea
Author: SmileTheory <SmileTheory at gmail.com>
Date: Tue Oct 11 04:18:41 2016 -0700
OpenGL2: Workaround for multiple deforms on MD3 mesh.
https://github.com/ioquake/ioq3/issues/122
---
code/renderergl2/tr_surface.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/code/renderergl2/tr_surface.c b/code/renderergl2/tr_surface.c
index 70a25ce..1ade59c 100644
--- a/code/renderergl2/tr_surface.c
+++ b/code/renderergl2/tr_surface.c
@@ -1291,6 +1291,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/ioquake3.git
More information about the Pkg-games-commits
mailing list