From b3231e5c9b8e0df1520a205e7f3c14bab958d0d7 Mon Sep 17 00:00:00 2001 From: plagman Date: Wed, 29 Dec 2010 20:46:11 +0000 Subject: [PATCH] Get the glTexImage3D function pointer from the ICD, not from dlsym/GetProcAddress. This fixes OpenGL on Windows since opengl32.dll only has version 1.1 symbols. git-svn-id: https://svn.eduke32.com/eduke32@1747 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/glbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/glbuild.c b/polymer/eduke32/build/src/glbuild.c index 566480bd6..451f5417d 100644 --- a/polymer/eduke32/build/src/glbuild.c +++ b/polymer/eduke32/build/src/glbuild.c @@ -432,7 +432,6 @@ int32_t loadgldriver(const char *driver) bglDeleteTextures = GETPROC("glDeleteTextures"); bglBindTexture = GETPROC("glBindTexture"); bglTexImage2D = GETPROC("glTexImage2D"); - bglTexImage3D = GETPROC("glTexImage3D"); bglCopyTexImage2D = GETPROC("glCopyTexImage2D"); bglCopyTexSubImage2D= GETPROC("glCopyTexSubImage2D"); bglTexSubImage2D = GETPROC("glTexSubImage2D"); @@ -484,6 +483,7 @@ int32_t loadglextensions(void) if (!hGLDLL) return 0; #endif + bglTexImage3D = GETPROCEXTSOFT("glTexImage3D"); bglCompressedTexImage2DARB = GETPROCEXTSOFT("glCompressedTexImage2DARB"); bglGetCompressedTexImageARB = GETPROCEXTSOFT("glGetCompressedTexImageARB");