diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-10-16 21:08:31 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-19 22:22:58 +0200 |
commit | 00b21fba57ca9fb850f1d37b6b27e744c3670907 (patch) | |
tree | 80e7886c6a73ff596045b66b7c01f6ec9ebd36b0 /Userland/Libraries | |
parent | fe5419da0f1c484aee2e16c30ce27c42dbe42ece (diff) | |
download | serenity-00b21fba57ca9fb850f1d37b6b27e744c3670907.zip |
LibGL: Return `GLboolean` value in `glIsEnabled`
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGL/ContextParameter.cpp | 2 |
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) |