From 23c506a3c99de3aea806132979ab8f8abd0208da Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 22 Oct 2002 07:02:47 +0000 Subject: [PATCH] don't use 3d textures on drivers that don't explicitly advertise it as an extension git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2547 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_shared.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/vid_shared.c b/vid_shared.c index 6d59a927..a65d5a72 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -333,14 +333,6 @@ static gl_extensionfunctionlist_t compiledvertexarrayfuncs[] = {NULL, NULL} }; -static gl_extensionfunctionlist_t texture3dfuncs[] = -{ - {"glTexImage3D", (void **) &qglTexImage3D}, - {"glTexSubImage3D", (void **) &qglTexSubImage3D}, - {"glCopyTexSubImage3D", (void **) &qglCopyTexSubImage3D}, - {NULL, NULL} -}; - static gl_extensionfunctionlist_t texture3dextfuncs[] = { {"glTexImage3DEXT", (void **) &qglTexImage3D}, @@ -379,7 +371,7 @@ void VID_CheckExtensions(void) gl_dot3arb = GL_CheckExtension("GL_ARB_texture_env_dot3", NULL, "-nodot3", false); } - gl_texture3d = GL_CheckExtension("glTexImage3D", texture3dfuncs, "-notexture3d", false) || GL_CheckExtension("GL_EXT_texture3D", texture3dextfuncs, "-notexture3d", false); + gl_texture3d = GL_CheckExtension("GL_EXT_texture3D", texture3dextfuncs, "-notexture3d", false); gl_texturecubemap = GL_CheckExtension("GL_ARB_texture_cube_map", NULL, "-nocubemap", false); gl_supportslockarrays = GL_CheckExtension("GL_EXT_compiled_vertex_array", compiledvertexarrayfuncs, "-nocva", false); -- 2.39.2