Make glGenerateMipmap the function, and EXT the alias
This commit is contained in:
parent
3dcbbdbde6
commit
a05e1b01fa
|
@ -254,7 +254,7 @@ GLboolean _glGenerateMipmapTwiddled(const GLuint pvrFormat, const GLubyte* prevD
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void APIENTRY glGenerateMipmapEXT(GLenum target) {
|
void APIENTRY glGenerateMipmap(GLenum target) {
|
||||||
if(target != GL_TEXTURE_2D) {
|
if(target != GL_TEXTURE_2D) {
|
||||||
_glKosThrowError(GL_INVALID_OPERATION, __func__);
|
_glKosThrowError(GL_INVALID_OPERATION, __func__);
|
||||||
return;
|
return;
|
||||||
|
@ -334,7 +334,7 @@ GLAPI GLvoid APIENTRY gluBuild2DMipmaps(GLenum target, GLint internalFormat,
|
||||||
unsigned byte data, and finally the data itself. */
|
unsigned byte data, and finally the data itself. */
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, data);
|
glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, data);
|
||||||
|
|
||||||
glGenerateMipmapEXT(GL_TEXTURE_2D);
|
glGenerateMipmap(GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
|
|
||||||
GLenum APIENTRY glCheckFramebufferStatusEXT(GLenum target) {
|
GLenum APIENTRY glCheckFramebufferStatusEXT(GLenum target) {
|
||||||
|
|
|
@ -130,7 +130,7 @@ GLAPI void APIENTRY glGenFramebuffersEXT(GLsizei n, GLuint* framebuffers);
|
||||||
GLAPI void APIENTRY glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers);
|
GLAPI void APIENTRY glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers);
|
||||||
GLAPI void APIENTRY glBindFramebufferEXT(GLenum target, GLuint framebuffer);
|
GLAPI void APIENTRY glBindFramebufferEXT(GLenum target, GLuint framebuffer);
|
||||||
GLAPI void APIENTRY glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
GLAPI void APIENTRY glFramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||||
GLAPI void APIENTRY glGenerateMipmapEXT(GLenum target);
|
GLAPI void APIENTRY glGenerateMipmap(GLenum target);
|
||||||
GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT(GLenum target);
|
GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT(GLenum target);
|
||||||
GLAPI GLboolean APIENTRY glIsFramebufferEXT(GLuint framebuffer);
|
GLAPI GLboolean APIENTRY glIsFramebufferEXT(GLuint framebuffer);
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ GLAPI void APIENTRY glCompressedTexImage2DARB(GLenum target,
|
||||||
#define glClientActiveTexture glClientActiveTextureARB
|
#define glClientActiveTexture glClientActiveTextureARB
|
||||||
#define glMultiTexCoord2f glMultiTexCoord2fARB
|
#define glMultiTexCoord2f glMultiTexCoord2fARB
|
||||||
|
|
||||||
#define glGenerateMipmap glGenerateMipmapEXT
|
#define glGenerateMipmapEXT glGenerateMipmap
|
||||||
#define glCompressedTexImage2D glCompressedTexImage2DARB
|
#define glCompressedTexImage2D glCompressedTexImage2DARB
|
||||||
|
|
||||||
#ifndef GL_VERSION_1_4
|
#ifndef GL_VERSION_1_4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user