summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_marks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/tr_marks.c')
-rw-r--r--src/renderergl2/tr_marks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/renderergl2/tr_marks.c b/src/renderergl2/tr_marks.c
index 3fe41d1c..f698262c 100644
--- a/src/renderergl2/tr_marks.c
+++ b/src/renderergl2/tr_marks.c
@@ -270,7 +270,7 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
int numClipPoints;
float *v;
srfBspSurface_t *cv;
- srfTriangle_t *tri;
+ glIndex_t *tri;
srfVert_t *dv;
vec3_t normal;
vec3_t projectionDir;
@@ -415,11 +415,11 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
continue;
}
- for(k = 0, tri = surf->triangles; k < surf->numTriangles; k++, tri++)
+ for(k = 0, tri = surf->indexes; k < surf->numIndexes; k += 3, tri += 3)
{
for(j = 0; j < 3; j++)
{
- v = surf->verts[tri->indexes[j]].xyz;
+ v = surf->verts[tri[j]].xyz;
VectorMA(v, MARKER_OFFSET, surf->cullPlane.normal, clipPoints[0][j]);
}
@@ -438,12 +438,12 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
srfBspSurface_t *surf = (srfBspSurface_t *) surfaces[i];
- for(k = 0, tri = surf->triangles; k < surf->numTriangles; k++, tri++)
+ for(k = 0, tri = surf->indexes; k < surf->numIndexes; k += 3, tri += 3)
{
for(j = 0; j < 3; j++)
{
- v = surf->verts[tri->indexes[j]].xyz;
- VectorMA(v, MARKER_OFFSET, surf->verts[tri->indexes[j]].normal, clipPoints[0][j]);
+ v = surf->verts[tri[j]].xyz;
+ VectorMA(v, MARKER_OFFSET, surf->verts[tri[j]].normal, clipPoints[0][j]);
}
// add the fragments of this face