From 5f31417baebf01fa63683b7e8bdfdd043d97d514 Mon Sep 17 00:00:00 2001 From: mittorn Date: Fri, 19 Jan 2024 21:14:42 +0300 Subject: [PATCH] ref_gl: fix missing vboarray split transition on some maps --- ref/gl/gl_rsurf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index 64f13c41..f26db4b9 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -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 ) );