1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibGL: Implement glActiveTextureARB()

This is the equivalent of glActiveTexture() before it got promoted to
the OpenGL core specification. It is needed by glquake to enable the
multitexturing render path.
This commit is contained in:
Stephan Unverwerth 2022-01-15 17:48:17 +01:00 committed by Andreas Kling
parent d3d12c2fe7
commit 716b53e90f
2 changed files with 6 additions and 2 deletions

View file

@ -577,6 +577,7 @@ GLAPI void glTexEnvf(GLenum target, GLenum pname, GLfloat param);
GLAPI void glTexEnvi(GLenum target, GLenum pname, GLint param);
GLAPI void glBindTexture(GLenum target, GLuint texture);
GLAPI GLboolean glIsTexture(GLuint texture);
GLAPI void glActiveTextureARB(GLenum texture);
GLAPI void glActiveTexture(GLenum texture);
GLAPI void glGetBooleanv(GLenum pname, GLboolean* data);
GLAPI void glGetDoublev(GLenum pname, GLdouble* params);

View file

@ -52,8 +52,11 @@ GLboolean glIsTexture(GLuint texture)
return g_gl_context->gl_is_texture(texture);
}
// Note: This is an _extremely_ misleading API name. This sets the active
// texture unit, NOT the active texture itself...
void glActiveTextureARB(GLenum texture)
{
glActiveTexture(texture);
}
void glActiveTexture(GLenum texture)
{
g_gl_context->gl_active_texture(texture);