]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Remove some unused stuff related to glDrawRangeElements.
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 31 Jul 2018 01:35:10 +0000 (01:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 31 Jul 2018 01:35:10 +0000 (01:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12448 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c
vid.h
vid_shared.c

index bc13cd7ab5c43ec7c123e59d132169ad13f8bbee..68c16fc7ec5c4a3c59bf11962d4ab1eae30f089c 100644 (file)
@@ -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 ac3e17f54a9c7e98dcb57edab31f574060683f8e..25b5168f7a744bffeb0b66778a175bb6d6686d08 100644 (file)
--- 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;
index 11709033acbf15d1208c47630d5d92c762514d7b..0a522462a66ba17db7e563259939f8e72dfd7a50 100644 (file)
@@ -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)