]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use rsurface.modelelement3i variable instead of
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 May 2010 00:16:01 +0000 (00:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 May 2010 00:16:01 +0000 (00:16 +0000)
model->surfmesh.data_element3i for consistency sake

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10178 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 328267ea6267d25549972709ca97bb7e7755d431..02e9e576a18b5cb3f46bc827c18dc0dc55e6fa94 100644 (file)
@@ -12314,7 +12314,7 @@ static void R_DecalSystem_SplatEntity(entity_render_t *ent, const vec3_t worldor
                if (texture->surfaceflags & Q3SURFACEFLAG_NOMARKS)
                        continue;
                numtriangles = surface->num_triangles;
-               for (triangleindex = 0, e = model->surfmesh.data_element3i + 3*surface->num_firsttriangle;triangleindex < numtriangles;triangleindex++, e += 3)
+               for (triangleindex = 0, e = rsurface.modelelement3i + 3*surface->num_firsttriangle;triangleindex < numtriangles;triangleindex++, e += 3)
                {
                        for (cornerindex = 0;cornerindex < 3;cornerindex++)
                        {