summaryrefslogtreecommitdiff
path: root/src/renderergl1/tr_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl1/tr_surface.c')
-rw-r--r--src/renderergl1/tr_surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/renderergl1/tr_surface.c b/src/renderergl1/tr_surface.c
index 8f0905e7..8bb01229 100644
--- a/src/renderergl1/tr_surface.c
+++ b/src/renderergl1/tr_surface.c
@@ -345,6 +345,8 @@ static void DoRailCore( const vec3_t start, const vec3_t end, const vec3_t up, f
int vbase;
float t = len / 256.0f;
+ RB_CHECKOVERFLOW( 4, 6 );
+
vbase = tess.numVertexes;
spanWidth2 = -spanWidth;