ref_gl: fix missing vboarray split transition on some maps
This commit is contained in:
parent
150d98bd15
commit
5f31417bae
1 changed files with 2 additions and 1 deletions
|
@ -1947,9 +1947,10 @@ void R_GenerateVBO( void )
|
|||
|
||||
if( vbo->array_len + surf->polys->numverts > VBOINDEX_MAX )
|
||||
{
|
||||
vbotex->vboarray = vbo;
|
||||
// generate new array and new vbotexture node
|
||||
vbo->array = Mem_Calloc( vbos.mempool, sizeof( vbovertex_t ) * vbo->array_len );
|
||||
gEngfuncs.Con_Printf( "R_GenerateVBOs: allocated array of %d verts, texture %d\n", vbo->array_len, j );
|
||||
gEngfuncs.Con_Printf( "R_GenerateVBOs: allocated array of %d verts, texture %d, lm %d\n", vbo->array_len, j, k );
|
||||
vbo->next = Mem_Calloc( vbos.mempool, sizeof( vboarray_t ) );
|
||||
vbo = vbo->next;
|
||||
vbotex->next = Mem_Calloc( vbos.mempool, sizeof( vbotexture_t ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue