From 0514d3745850e92509dc3ecf6e6b4ec20ed4372e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 27 Jul 2002 16:46:58 +0000 Subject: [PATCH] don't accept absurdly large vertex arrays --- libs/video/targets/vid_common_gl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/video/targets/vid_common_gl.c b/libs/video/targets/vid_common_gl.c index 2a966bfbb..9f7f1af61 100644 --- a/libs/video/targets/vid_common_gl.c +++ b/libs/video/targets/vid_common_gl.c @@ -159,6 +159,8 @@ void CheckVertexArraySize (void) { qfglGetIntegerv (GL_MAX_ELEMENTS_VERTICES, &vaelements); + if (vaelements > 65536) + vaelements = 65536; // qfglGetIntegerv (MAX_ELEMENTS_INDICES, *vaindices); }