diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/renderergl1/tr_surface.c | 2 | ||||
-rw-r--r-- | src/renderergl2/tr_surface.c | 2 |
2 files changed, 4 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; diff --git a/src/renderergl2/tr_surface.c b/src/renderergl2/tr_surface.c index d91085da..ffe0269f 100644 --- a/src/renderergl2/tr_surface.c +++ b/src/renderergl2/tr_surface.c @@ -628,6 +628,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; |