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:
parent
d3d12c2fe7
commit
716b53e90f
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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