From 1562ec5cc3706acfac1db04366f78e4949ef5502 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Thu, 27 Jan 2005 20:33:34 +0000 Subject: Functions like glGenTextures and glBindTexture are in OpenGL 1.1 and can be resolved at linktime. Fixes tuxkart (at least with wine) --- GL/windows/ChangeLog | 8 +++++++- GL/windows/glwrap.c | 18 ++++++------------ 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 + + * glwrap.c: + Functions like glGenTextures and glBindTexture are in OpenGL 1.1 + and can be resolved at linktime. + 2004-11-15 Alexander Gottwald * 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 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); } /* -- cgit v1.2.3