Nuked some leftovers from Havoc.

This commit is contained in:
Dabb 2001-01-05 16:31:06 +00:00
parent 9ac296eec2
commit 1fed0a6664

View file

@ -154,11 +154,6 @@ void ClearAllStates (void);
void VID_UpdateWindowStatus (void);
void GL_Init (void);
PROC glArrayElementEXT;
PROC glColorPointerEXT;
PROC glTexCoordPointerEXT;
PROC glVertexPointerEXT;
typedef void (APIENTRY * lp3DFXFUNC) (int, int, int, int, int, const void *);
lp3DFXFUNC glColorTableEXT;
qboolean is8bit = false;
@ -493,44 +488,6 @@ VID_UpdateWindowStatus (void)
IN_UpdateClipCursor ();
}
void
CheckArrayExtensions (void)
{
// fixme: inactive code for vertex arrays
char *tmp;
/* check for texture extension */
tmp = (unsigned char *) glGetString (GL_EXTENSIONS);
while (*tmp) {
if (strncmp
((const char *) tmp, "GL_EXT_vertex_array",
strlen ("GL_EXT_vertex_array")) == 0) {
if (
((glArrayElementEXT = wglGetProcAddress ("glArrayElementEXT"))
== NULL)
||
((glColorPointerEXT = wglGetProcAddress ("glColorPointerEXT"))
== NULL)
||
((glTexCoordPointerEXT
= wglGetProcAddress ("glTexCoordPointerEXT")) == NULL)
||
((glVertexPointerEXT = wglGetProcAddress ("glVertexPointerEXT"))
== NULL)) {
Sys_Error ("GetProcAddress for vertex extension failed");
return;
}
return;
}
tmp++;
}
Sys_Error ("Vertex array extension not present");
}
int texture_extension_number = 1;
#ifdef _WIN32
@ -624,17 +581,6 @@ GL_Init (void)
glTexEnvf (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
#if 0
// fixme: inactive code for vertex arrays
CheckArrayExtensions ();
glEnable (GL_VERTEX_ARRAY_EXT);
glEnable (GL_TEXTURE_COORD_ARRAY_EXT);
glVertexPointerEXT (3, GL_FLOAT, 0, 0, &glv.x);
glTexCoordPointerEXT (2, GL_FLOAT, 0, 0, &glv.s);
glColorPointerEXT (3, GL_FLOAT, 0, 0, &glv.r);
#endif
}
/*