Functions like glGenTextures and glBindTexture are in OpenGL 1.1 and can be
resolved at linktime. Fixes tuxkart (at least with wine)
This commit is contained in:
parent
5ca5fe7111
commit
1562ec5cc3
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user