From 5f723ff41dcca6b0a3269acb33833fff166ba85b Mon Sep 17 00:00:00 2001 From: Dmitry Toroshchin Date: Thu, 5 Oct 2023 19:07:06 +0300 Subject: [PATCH] ref_gl: remove complete useless macro, enable VBO under option --- ref/gl/gl_rsurf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index 73877453..17cb8bb1 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -1792,11 +1792,7 @@ void R_GenerateVBO( void ) R_ClearVBO(); // 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 ) -#else - if( 1 ) -#endif + if( !GL_Support( GL_ARB_VERTEX_BUFFER_OBJECT_EXT ) || !GL_Support( GL_ARB_MULTITEXTURE ) || glConfig.max_texture_units < 2 || !gEngfuncs.Sys_CheckParm("-gl-allow-vbo-dontuse") ) { gEngfuncs.Cvar_FullSet( "gl_vbo", "0", FCVAR_READ_ONLY ); return;