remove support for GL_NV_vertex_array_range as it's obsolete and unused
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Oct 2004 10:27:50 +0000 (10:27 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Oct 2004 10:27:50 +0000 (10:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4580 d7cf8633-e32d-0410-b094-e92efae38249

glquake.h
vid_shared.c

index 638124c..cc01ac7 100644 (file)
--- a/glquake.h
+++ b/glquake.h
@@ -374,21 +374,6 @@ extern int gl_support_clamptoedge;
 #define GL_CLAMP_TO_EDGE 0x812F
 #endif
 
-//GL_NV_vertex_array_range
-extern GLvoid *(GLAPIENTRY *qglAllocateMemoryNV)(GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
-extern GLvoid (GLAPIENTRY *qglFreeMemoryNV)(GLvoid *pointer);
-extern GLvoid (GLAPIENTRY *qglVertexArrayRangeNV)(GLsizei length, GLvoid *pointer);
-extern GLvoid (GLAPIENTRY *qglFlushVertexArrayRangeNV)(GLvoid);
-#define GL_VERTEX_ARRAY_RANGE_NV 0x851D
-#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E
-#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
-#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521
-extern int gl_support_var;
-
-//GL_NV_vertex_array_range2
-#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
-extern int gl_support_var2;
-
 //GL_EXT_stencil_two_side
 #define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
 #define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
index 527da36..8da4fcc 100644 (file)
@@ -32,10 +32,6 @@ int gl_texturecubemap = false;
 int gl_dot3arb = false;
 // GL_SGIS_texture_edge_clamp
 int gl_support_clamptoedge = false;
-// GL_NV_vertex_array_range
-int gl_support_var = false;
-// GL_NV_vertex_array_range2
-int gl_support_var2 = false;
 // GL_EXT_texture_filter_anisotropic
 int gl_support_anisotropy = false;
 int gl_max_anisotropy = 1;
@@ -499,24 +495,6 @@ static dllfunction_t texture3dextfuncs[] =
        {NULL, NULL}
 };
 
-static dllfunction_t glxvarfuncs[] =
-{
-       {"glXAllocateMemoryNV", (void **) &qglAllocateMemoryNV},
-       {"glXFreeMemoryNV", (void **) &qglFreeMemoryNV},
-       {"glVertexArrayRangeNV", (void **) &qglVertexArrayRangeNV},
-       {"glFlushVertexArrayRangeNV", (void **) &qglFlushVertexArrayRangeNV},
-       {NULL, NULL}
-};
-
-static dllfunction_t wglvarfuncs[] =
-{
-       {"wglAllocateMemoryNV", (void **) &qglAllocateMemoryNV},
-       {"wglFreeMemoryNV", (void **) &qglFreeMemoryNV},
-       {"glVertexArrayRangeNV", (void **) &qglVertexArrayRangeNV},
-       {"glFlushVertexArrayRangeNV", (void **) &qglFlushVertexArrayRangeNV},
-       {NULL, NULL}
-};
-
 static dllfunction_t stenciltwosidefuncs[] =
 {
        {"glActiveStencilFaceEXT", (void **) &qglActiveStencilFaceEXT},
@@ -632,8 +610,6 @@ void VID_CheckExtensions(void)
        gl_texturecubemap = false;
        gl_dot3arb = false;
        gl_support_clamptoedge = false;
-       gl_support_var = false;
-       gl_support_var2 = false;
        gl_support_anisotropy = false;
        gl_max_anisotropy = 1;
        gl_textureshader = false;
@@ -670,13 +646,6 @@ void VID_CheckExtensions(void)
        gl_supportslockarrays = GL_CheckExtension("GL_EXT_compiled_vertex_array", compiledvertexarrayfuncs, "-nocva", false);
        gl_support_clamptoedge = GL_CheckExtension("GL_EXT_texture_edge_clamp", NULL, "-noedgeclamp", false) || GL_CheckExtension("GL_SGIS_texture_edge_clamp", NULL, "-noedgeclamp", false);
 
-       if (!strcmp(gl_platform, "GLX"))
-               gl_support_var = GL_CheckExtension("GL_NV_vertex_array_range", glxvarfuncs, "-novar", false);
-       else if (!strcmp(gl_platform, "WGL"))
-               gl_support_var = GL_CheckExtension("GL_NV_vertex_array_range", wglvarfuncs, "-novar", false);
-       if (gl_support_var)
-               gl_support_var2 = GL_CheckExtension("GL_NV_vertex_array_range2", NULL, "-novar2", false);
-
        if ((gl_support_anisotropy = GL_CheckExtension("GL_EXT_texture_filter_anisotropic", NULL, "-noanisotropy", false)))
                qglGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gl_max_anisotropy);