From cd84535c9bee3c6e7afe080953e609b64bbaa7ac Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 6 Oct 2002 14:23:32 +0000 Subject: [PATCH] detect 3D textures as GL_EXT_texture3D again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2506 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_shared.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vid_shared.c b/vid_shared.c index 7950c4e4..55efef35 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -333,9 +333,9 @@ static gl_extensionfunctionlist_t compiledvertexarrayfuncs[] = static gl_extensionfunctionlist_t texture3dfuncs[] = { - {"glTexImage3D", (void **) &qglTexImage3D}, - {"glTexSubImage3D", (void **) &qglTexSubImage3D}, - {"glCopyTexSubImage3D", (void **) &qglCopyTexSubImage3D}, + {"glTexImage3DEXT", (void **) &qglTexImage3D}, + {"glTexSubImage3DEXT", (void **) &qglTexSubImage3D}, + {"glCopyTexSubImage3DEXT", (void **) &qglCopyTexSubImage3D}, {NULL, NULL} }; @@ -369,7 +369,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_texture3d = GL_CheckExtension("GL_EXT_texture3D", texture3dfuncs, "-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