Browse Source

ref_gl: fix rarely broken texturechain on some big maps

pull/2/head
mittorn 1 year ago committed by Alibek Omarov
parent
commit
3a8f4961bc
  1. 2
      ref/gl/gl_rsurf.c

2
ref/gl/gl_rsurf.c

@ -2690,7 +2690,7 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures )
// update texcoord pointers // update texcoord pointers
if( drawtextures ) 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 ) ); pglTexCoordPointer( 2, GL_FLOAT, sizeof( vbovertex_t ), (void*)offsetof(vbovertex_t, gl_tc ) );
} }

Loading…
Cancel
Save