OpenGL2: Workaround for multiple deforms on MD3 mesh.

https://github.com/ioquake/ioq3/issues/122
This commit is contained in:
SmileTheory 2016-10-11 04:18:41 -07:00
parent aa79738c50
commit ad819edcc4

View file

@ -1291,6 +1291,12 @@ void RB_SurfaceVaoMdvMesh(srfVaoMdvMesh_t * surface)
GLimp_LogComment("--- RB_SurfaceVaoMdvMesh ---\n"); GLimp_LogComment("--- RB_SurfaceVaoMdvMesh ---\n");
if (ShaderRequiresCPUDeforms(tess.shader))
{
RB_SurfaceMesh(surface->mdvSurface);
return;
}
if(!surface->vao) if(!surface->vao)
return; return;