summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-10-16 21:08:31 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-19 22:22:58 +0200
commit00b21fba57ca9fb850f1d37b6b27e744c3670907 (patch)
tree80e7886c6a73ff596045b66b7c01f6ec9ebd36b0 /Userland/Libraries
parentfe5419da0f1c484aee2e16c30ce27c42dbe42ece (diff)
downloadserenity-00b21fba57ca9fb850f1d37b6b27e744c3670907.zip
LibGL: Return `GLboolean` value in `glIsEnabled`
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGL/ContextParameter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/ContextParameter.cpp b/Userland/Libraries/LibGL/ContextParameter.cpp
index 25e466ed71..15354eb9c3 100644
--- a/Userland/Libraries/LibGL/ContextParameter.cpp
+++ b/Userland/Libraries/LibGL/ContextParameter.cpp
@@ -615,7 +615,7 @@ GLboolean GLContext::gl_is_enabled(GLenum capability)
auto parameter = optional_parameter.release_value();
RETURN_VALUE_WITH_ERROR_IF(!parameter.is_capability, GL_INVALID_ENUM, 0);
- return parameter.value.boolean_value;
+ return parameter.value.boolean_value ? GL_TRUE : GL_FALSE;
}
GPU::PackingSpecification GLContext::get_packing_specification(PackingType packing_type)