summaryrefslogtreecommitdiff
path: root/src/renderer/tr_marks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_marks.c')
-rw-r--r--src/renderer/tr_marks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer/tr_marks.c b/src/renderer/tr_marks.c
index b3b53330..6bcd7cb1 100644
--- a/src/renderer/tr_marks.c
+++ b/src/renderer/tr_marks.c
@@ -273,6 +273,10 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
vec3_t v1, v2;
int *indexes;
+ if (numPoints <= 0) {
+ return 0;
+ }
+
//increment view count for double check prevention
tr.viewCount++;