mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
don't accept absurdly large vertex arrays
This commit is contained in:
parent
d04eeb3ba2
commit
0514d37458
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ void
|
|||
CheckVertexArraySize (void)
|
||||
{
|
||||
qfglGetIntegerv (GL_MAX_ELEMENTS_VERTICES, &vaelements);
|
||||
if (vaelements > 65536)
|
||||
vaelements = 65536;
|
||||
// qfglGetIntegerv (MAX_ELEMENTS_INDICES, *vaindices);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue