From 76b15ade2529a65c704ad95e129f543594de9a22 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 28 Oct 2004 07:07:44 +0000 Subject: [PATCH] Added support for GL_EXT_compiled_vertex_array git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@382 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidcommon.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_vidcommon.c b/engine/gl/gl_vidcommon.c index 4a689e21b..d0b830f75 100644 --- a/engine/gl/gl_vidcommon.c +++ b/engine/gl/gl_vidcommon.c @@ -257,6 +257,12 @@ void GL_CheckExtensions (void *(*getglfunction) (char *name)) bindTexFunc = (void *)getglext("glBindTexture"); } + if (strstr(gl_extensions, "GL_EXT_compiled_vertex_array")) + { + qglLockArraysEXT = (void *)getglext("glLockArraysEXT"); + qglUnlockArraysEXT = (void *)getglext("glUnlockArraysEXT"); + } + gl_config.tex_env_combine = !!strstr(gl_extensions, "GL_EXT_texture_env_combine"); gl_config.env_add = !!strstr(gl_extensions, "GL_EXT_texture_env_add"); gl_config.nv_tex_env_combine4 = !!strstr(gl_extensions, "GL_NV_texture_env_combine4");