From: havoc Date: Tue, 31 Jul 2018 01:35:10 +0000 (+0000) Subject: Remove some unused stuff related to glDrawRangeElements. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=73a2ac0097c0ac6235b351626a0710e673a05a64;p=xonotic%2Fdarkplaces.git Remove some unused stuff related to glDrawRangeElements. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12448 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index bc13cd7a..68c16fc7 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -97,9 +97,6 @@ float gl_modelview16f[16]; float gl_modelviewprojection16f[16]; qboolean gl_modelmatrixchanged; -int gl_maxdrawrangeelementsvertices; -int gl_maxdrawrangeelementsindices; - #ifdef DEBUGGL int gl_errornumber = 0; diff --git a/vid.h b/vid.h index ac3e17f5..25b5168f 100644 --- a/vid.h +++ b/vid.h @@ -95,9 +95,6 @@ typedef struct viddef_s renderpath_t renderpath; qboolean allowalphatocoverage; // indicates the GL_AlphaToCoverage function works on this renderpath and framebuffer - unsigned int drawrangeelements_maxvertices; - unsigned int drawrangeelements_maxindices; - unsigned int maxtexturesize_2d; unsigned int maxtexturesize_3d; unsigned int maxtexturesize_cubemap; diff --git a/vid_shared.c b/vid_shared.c index 11709033..0a522462 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -847,7 +847,6 @@ void VID_CheckExtensions(void) vid.support.arb_debug_output = GL_CheckExtension("GL_ARB_debug_output", debugoutputfuncs, "-nogldebugoutput", false); vid.allowalphatocoverage = false; -// COMMANDLINEOPTION: GL: -noshaders disables use of OpenGL 2.0 shaders (which allow pixel shader effects, can improve per pixel lighting performance and capabilities) // COMMANDLINEOPTION: GL: -noanisotropy disables GL_EXT_texture_filter_anisotropic (allows higher quality texturing) // COMMANDLINEOPTION: GL: -noblendminmax disables GL_EXT_blend_minmax // COMMANDLINEOPTION: GL: -noblendsubtract disables GL_EXT_blend_subtract @@ -855,7 +854,6 @@ void VID_CheckExtensions(void) // COMMANDLINEOPTION: GL: -nocubemap disables GL_ARB_texture_cube_map (required for bumpmapping) // COMMANDLINEOPTION: GL: -nodepthtexture disables use of GL_ARB_depth_texture (required for shadowmapping) // COMMANDLINEOPTION: GL: -nodrawbuffers disables use of GL_ARB_draw_buffers (required for r_shadow_deferredprepass) -// COMMANDLINEOPTION: GL: -nodrawrangeelements disables GL_EXT_draw_range_elements (renders faster) // COMMANDLINEOPTION: GL: -noedgeclamp disables GL_EXT_texture_edge_clamp or GL_SGIS_texture_edge_clamp (recommended, some cards do not support the other texture clamp method) // COMMANDLINEOPTION: GL: -nofbo disables GL_EXT_framebuffer_object (which accelerates rendering), only used if GL_ARB_fragment_shader is also available // COMMANDLINEOPTION: GL: -nomtex disables GL_ARB_multitexture (required for faster map rendering)