]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a crash on deformvertexes wave
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:19:27 +0000 (14:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 14:19:27 +0000 (14:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10163 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index d43a35f9e175304dee000c197de567159d2e989f..bf9f8b587b59c25220acc1f691a5e41a61e7a9ab 100644 (file)
@@ -10164,7 +10164,7 @@ void RSurf_PrepareVerticesForBatch(int batchneed, int texturenumsurfaces, const
                        needsupdate |= BATCHNEED_VERTEXMESH_NORMAL | BATCHNEED_VERTEXMESH_VECTOR;
                        break;
                case Q3DEFORM_WAVE:
-                       batchneed |= BATCHNEED_ARRAY_VERTEX | BATCHNEED_ARRAY_TEXCOORD | BATCHNEED_NOGAPS;
+                       batchneed |= BATCHNEED_ARRAY_VERTEX | BATCHNEED_ARRAY_NORMAL | BATCHNEED_ARRAY_TEXCOORD | BATCHNEED_NOGAPS;
                        needsupdate |= BATCHNEED_VERTEXPOSITION | BATCHNEED_VERTEXMESH_VERTEX | BATCHNEED_VERTEXMESH_NORMAL | BATCHNEED_VERTEXMESH_VECTOR;
                        break;
                case Q3DEFORM_BULGE: