Browse Source

ref: gl: VBO is disabled unless somebody picks it up and fixes memory corruption and other bugs

pull/2/head
Alibek Omarov 2 years ago
parent
commit
fd3c5e8384
  1. 4
      ref/gl/gl_rsurf.c

4
ref/gl/gl_rsurf.c

@ -1792,7 +1792,11 @@ void R_GenerateVBO( void )
R_ClearVBO(); R_ClearVBO();
// we do not want to write vbo code that does not use multitexture // we do not want to write vbo code that does not use multitexture
#if ALLOW_VBO
if( !GL_Support( GL_ARB_VERTEX_BUFFER_OBJECT_EXT ) || !GL_Support( GL_ARB_MULTITEXTURE ) || glConfig.max_texture_units < 2 ) if( !GL_Support( GL_ARB_VERTEX_BUFFER_OBJECT_EXT ) || !GL_Support( GL_ARB_MULTITEXTURE ) || glConfig.max_texture_units < 2 )
#else
if( 1 )
#endif
{ {
gEngfuncs.Cvar_FullSet( "gl_vbo", "0", FCVAR_READ_ONLY ); gEngfuncs.Cvar_FullSet( "gl_vbo", "0", FCVAR_READ_ONLY );
return; return;

Loading…
Cancel
Save