summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-01-27 20:33:34 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-01-27 20:33:34 +0000
commit1562ec5cc3706acfac1db04366f78e4949ef5502 (patch)
treeed0a74bdbca70bbf261de9f93c77c48be4b57403
parent5ca5fe71119f35f1f24aeb49e2608684024d450a (diff)
Functions like glGenTextures and glBindTexture are in OpenGL 1.1 and can be
resolved at linktime. Fixes tuxkart (at least with wine)
-rw-r--r--GL/windows/ChangeLog8
-rwxr-xr-xGL/windows/glwrap.c18
2 files changed, 13 insertions, 13 deletions
diff --git a/GL/windows/ChangeLog b/GL/windows/ChangeLog
index 66c78b829..484bc9e7b 100644
--- a/GL/windows/ChangeLog
+++ b/GL/windows/ChangeLog
@@ -1,7 +1,13 @@
+2005-01-27 Alexander Gottwald <ago at freedesktop dot org>
+
+ * glwrap.c:
+ Functions like glGenTextures and glBindTexture are in OpenGL 1.1
+ and can be resolved at linktime.
+
2004-11-15 Alexander Gottwald <ago at freedesktop dot org>
* indirect.c:
- Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802
+ Bugzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802
Added mingw (Win32) port
2004-08-13 Alexander Gottwald <ago@freedesktop.org>
diff --git a/GL/windows/glwrap.c b/GL/windows/glwrap.c
index c7aa80667..807e51972 100755
--- a/GL/windows/glwrap.c
+++ b/GL/windows/glwrap.c
@@ -324,38 +324,32 @@ GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
*/
GLAPI void GLAPIENTRY glGenTexturesEXT( GLsizei n, GLuint *textures )
{
- RESOLVE(PFNGLGENTEXTURESEXTPROC, "glGenTexturesEXT");
- proc(n, textures);
+ glGenTextures(n, textures);
}
GLAPI void GLAPIENTRY glDeleteTexturesEXT( GLsizei n, const GLuint *textures)
{
- RESOLVE(PFNGLDELETETEXTURESEXTPROC, "glDeleteTexturesEXT");
- proc(n, textures);
+ glDeleteTextures(n, textures);
}
GLAPI void GLAPIENTRY glBindTextureEXT( GLenum target, GLuint texture )
{
- RESOLVE(PFNGLBINDTEXTUREEXTPROC, "glBindTextureEXT");
- proc(target, target);
+ glBindTexture(target, target);
}
GLAPI void GLAPIENTRY glPrioritizeTexturesEXT( GLsizei n, const GLuint *textures, const GLclampf *priorities )
{
- RESOLVE(PFNGLPRIORITIZETEXTURESEXTPROC, "glPrioritizeTexturesEXT");
- proc(n, textures, priorities);
+ glPrioritizeTextures(n, textures, priorities);
}
GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT( GLsizei n, const GLuint *textures, GLboolean *residences )
{
- RESOLVE_RET(PFNGLARETEXTURESRESIDENTEXTPROC, "glAreTexturesResidentEXT", FALSE);
- return proc(n, textures, residences);
+ return glAreTexturesResident(n, textures, residences);
}
GLAPI GLboolean GLAPIENTRY glIsTextureEXT( GLuint texture )
{
- RESOLVE_RET(PFNGLISTEXTUREEXTPROC, "glIsTextureEXT", FALSE);
- return proc(texture);
+ return glIsTexture(texture);
}
/*