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
commit 716b53e90f
Notes: sideshowbarker 2024-07-17 20:39:19 +09:00
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);