Browse Source

ref_gl: gl_rsurf.c: don't use asserts to prevent engine from stopping when vbo is disabled.

pull/2/head
Andrey Akhmichin 4 years ago committed by Alibek Omarov
parent
commit
c158771f59
  1. 6
      ref_gl/gl_rsurf.c

6
ref_gl/gl_rsurf.c

@ -2697,7 +2697,9 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures ) @@ -2697,7 +2697,9 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures )
if( !vbotex->vboarray )
continue;
ASSERT( vbotex->vboarray == vbo );
// ASSERT( vbotex->vboarray == vbo );
if( vbotex->vboarray != vbo )
continue;
if( vbotex->curindex || vbotex->dlightchain )
{
@ -2855,7 +2857,7 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures ) @@ -2855,7 +2857,7 @@ void R_DrawVBO( qboolean drawlightmap, qboolean drawtextures )
if( !drawtextures || !drawlightmap )
vbos.decaldata->lm[k] = NULL;
}
ASSERT( !vbo->next );
// ASSERT( !vbo->next );
// restore states
R_DisableDetail();

Loading…
Cancel
Save