1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibGL: Return GLboolean value in glIsEnabled

This commit is contained in:
Jelle Raaijmakers 2022-10-16 21:08:31 +02:00 committed by Linus Groh
parent fe5419da0f
commit 00b21fba57

View file

@ -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)