don't accept absurdly large vertex arrays

This commit is contained in:
Bill Currie 2002-07-27 16:46:58 +00:00
parent d04eeb3ba2
commit 0514d37458

View file

@ -159,6 +159,8 @@ void
CheckVertexArraySize (void)
{
qfglGetIntegerv (GL_MAX_ELEMENTS_VERTICES, &vaelements);
if (vaelements > 65536)
vaelements = 65536;
// qfglGetIntegerv (MAX_ELEMENTS_INDICES, *vaindices);
}