1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2012-10-18 10:10:11 +00:00
parent e9de58cf6a
commit 1eb9fa0d76

View file

@ -289,7 +289,8 @@ static void SH_FreeShadowMesh_(shadowmesh_t *sm)
{
#ifdef GLQUAKE
case QR_OPENGL:
qglDeleteBuffersARB(2, sm->vebo);
if (qglDeleteBuffersARB)
qglDeleteBuffersARB(2, sm->vebo);
sm->vebo[0] = 0;
sm->vebo[1] = 0;
break;