mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Don't try and generate vbos for surfaces with no verts nor elements.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5574 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
81ade0c5d3
commit
c0e297c93d
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ static qboolean GL_BuildVBO(vbo_t *vbo, void *vdata, int vsize, void *edata, int
|
|||
int s;
|
||||
unsigned int vaostatic = 0;
|
||||
|
||||
if (!qglGenBuffersARB)
|
||||
if (!qglGenBuffersARB || !vsize || !elementsize)
|
||||
return false;
|
||||
|
||||
qglGenBuffersARB(1+(elementsize>0), vbos);
|
||||
|
|
Loading…
Reference in a new issue