mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
avoid potential crash
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4131 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e9de58cf6a
commit
1eb9fa0d76
1 changed files with 2 additions and 1 deletions
|
@ -289,7 +289,8 @@ static void SH_FreeShadowMesh_(shadowmesh_t *sm)
|
||||||
{
|
{
|
||||||
#ifdef GLQUAKE
|
#ifdef GLQUAKE
|
||||||
case QR_OPENGL:
|
case QR_OPENGL:
|
||||||
qglDeleteBuffersARB(2, sm->vebo);
|
if (qglDeleteBuffersARB)
|
||||||
|
qglDeleteBuffersARB(2, sm->vebo);
|
||||||
sm->vebo[0] = 0;
|
sm->vebo[0] = 0;
|
||||||
sm->vebo[1] = 0;
|
sm->vebo[1] = 0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue