summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLUtils.cpp
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-10-18 01:31:21 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-10-17 21:01:52 -0700
commita36ee213b99113b4edb2f6f1578ab21582a0adfa (patch)
tree826ddfb13541a827897332119e10c0edc4388e78 /Userland/Libraries/LibGL/GLUtils.cpp
parentb2627c8b744ebd214bc3321b8fc94f61ec90d61f (diff)
downloadserenity-a36ee213b99113b4edb2f6f1578ab21582a0adfa.zip
LibGL: Implement `glIsEnabled()`
Diffstat (limited to 'Userland/Libraries/LibGL/GLUtils.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLUtils.cpp b/Userland/Libraries/LibGL/GLUtils.cpp
index 73bad7804c..20515e9039 100644
--- a/Userland/Libraries/LibGL/GLUtils.cpp
+++ b/Userland/Libraries/LibGL/GLUtils.cpp
@@ -20,6 +20,11 @@ void glDisable(GLenum cap)
g_gl_context->gl_disable(cap);
}
+GLboolean glIsEnabled(GLenum cap)
+{
+ return g_gl_context->gl_is_enabled(cap);
+}
+
void glFrontFace(GLenum mode)
{
g_gl_context->gl_front_face(mode);