From 3a8f4961bcbace9dfc878073f61e7590bc369c5f Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 16 Oct 2023 16:29:52 +0300 Subject: [PATCH] ref_gl: fix rarely broken texturechain on some big maps --- ref/gl/gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index 86962757..f966711d 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -2690,7 +2690,7 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures ) // update texcoord pointers if( drawtextures ) { - tex = R_SetupVBOTexture( tex, 0 ); + tex = R_SetupVBOTexture( tex, j ); pglTexCoordPointer( 2, GL_FLOAT, sizeof( vbovertex_t ), (void*)offsetof(vbovertex_t, gl_tc ) ); }