mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 05:11:35 +00:00
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:
parent
4fce9e090d
commit
77f5f7adc1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue