mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +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:
parent
d3d12c2fe7
commit
716b53e90f
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue