From 00b21fba57ca9fb850f1d37b6b27e744c3670907 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 16 Oct 2022 21:08:31 +0200 Subject: LibGL: Return `GLboolean` value in `glIsEnabled` --- Userland/Libraries/LibGL/ContextParameter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGL/ContextParameter.cpp') 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) -- cgit v1.2.3