summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLTexture.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-01-15 17:48:17 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-19 19:57:49 +0100
commit716b53e90fe58836d6afb619dc5e3f7e136a806f (patch)
tree8df5dcf3f9300f553d2f5042f63d0d8026622530 /Userland/Libraries/LibGL/GLTexture.cpp
parentd3d12c2fe7e396edfc41780c404768a48d495ccc (diff)
downloadserenity-716b53e90fe58836d6afb619dc5e3f7e136a806f.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGL/GLTexture.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLTexture.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGL/GLTexture.cpp b/Userland/Libraries/LibGL/GLTexture.cpp
index 7b4e40f9eb..73c8d1af46 100644
--- a/Userland/Libraries/LibGL/GLTexture.cpp
+++ b/Userland/Libraries/LibGL/GLTexture.cpp
@@ -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);