1
0
Fork 0
forked from fte/fteqw

Fix a gl buffer handle leak.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6290 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-07-28 02:16:59 +00:00
parent 4fce9e090d
commit 77f5f7adc1

View file

@ -53,12 +53,12 @@ void GLBE_ClearVBO(vbo_t *vbo, qboolean dataonly)
{
if (!vboh[i])
continue;
for (j = 0; j < 7; j++)
for (j = 0; j < i; j++)
{
if (vboh[j] == vboh[i])
break; //already freed by one of the other ones
}
if (j == 7)
if (j == i)
qglDeleteBuffersARB(1, &vboh[i]);
}
if (vbo->vertdata)