diff options
author | SmileTheory <SmileTheory@gmail.com> | 2013-11-08 01:46:17 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:36 +0100 |
commit | 877ec28e7cab95c190366ae2d3d26955bc6993d7 (patch) | |
tree | 12be964e06132c9e08ab16f60573b94cda301eee /src/renderergl2/tr_main.c | |
parent | 98078a30922ff0da92f7023b18f954f894058a18 (diff) |
OpenGL2: Remove srfTriangle_t, and use glIndex_t instead.
Diffstat (limited to 'src/renderergl2/tr_main.c')
-rw-r--r-- | src/renderergl2/tr_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderergl2/tr_main.c b/src/renderergl2/tr_main.c index b0362a88..ca6bab3c 100644 --- a/src/renderergl2/tr_main.c +++ b/src/renderergl2/tr_main.c @@ -1289,9 +1289,9 @@ void R_PlaneForSurface (surfaceType_t *surfType, cplane_t *plane) { return; case SF_TRIANGLES: tri = (srfBspSurface_t *)surfType; - v1 = tri->verts + tri->triangles[0].indexes[0]; - v2 = tri->verts + tri->triangles[0].indexes[1]; - v3 = tri->verts + tri->triangles[0].indexes[2]; + v1 = tri->verts + tri->indexes[0]; + v2 = tri->verts + tri->indexes[1]; + v3 = tri->verts + tri->indexes[2]; PlaneFromPoints( plane4, v1->xyz, v2->xyz, v3->xyz ); VectorCopy( plane4, plane->normal ); plane->dist = plane4[3]; |