1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22: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

@ -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);