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
Notes: sideshowbarker 2024-07-17 05:19:29 +09:00

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)