LibGL: Implement glActiveTexture

This commit is contained in:
Jesse Buhagiar 2021-05-30 16:56:56 +10:00 committed by Linus Groh
parent 52e5d3c961
commit 573c1c82f7
Notes: sideshowbarker 2024-07-18 17:07:32 +09:00
5 changed files with 51 additions and 0 deletions

View file

@ -29,3 +29,10 @@ void glBindTexture(GLenum target, GLuint texture)
{
g_gl_context->gl_bind_texture(target, texture);
}
// Note: This is an _extremely_ misleading API name. This sets the active
// texture unit, NOT the active texture itself...
void glActiveTexture(GLenum texture)
{
g_gl_context->gl_active_texture(texture);
}