2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

ref_gl: fix missing vboarray split transition on some maps

This commit is contained in:
mittorn 2024-01-19 21:14:42 +03:00
parent ae010b2161
commit 62c4250dd8

View File

@ -1946,9 +1946,10 @@ void R_GenerateVBO( void )
if( vbo->array_len + surf->polys->numverts > VBOINDEX_MAX ) if( vbo->array_len + surf->polys->numverts > VBOINDEX_MAX )
{ {
vbotex->vboarray = vbo;
// generate new array and new vbotexture node // generate new array and new vbotexture node
vbo->array = Mem_Calloc( vbos.mempool, sizeof( vbovertex_t ) * vbo->array_len ); 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->next = Mem_Calloc( vbos.mempool, sizeof( vboarray_t ) );
vbo = vbo->next; vbo = vbo->next;
vbotex->next = Mem_Calloc( vbos.mempool, sizeof( vbotexture_t ) ); vbotex->next = Mem_Calloc( vbos.mempool, sizeof( vbotexture_t ) );