mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibGL: Return GLboolean
value in glIsEnabled
This commit is contained in:
parent
fe5419da0f
commit
00b21fba57
Notes:
sideshowbarker
2024-07-17 05:19:29 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/00b21fba57 Pull-request: https://github.com/SerenityOS/serenity/pull/15652 Reviewed-by: https://github.com/Quaker762 Reviewed-by: https://github.com/linusg ✅ Reviewed-by: https://github.com/sunverwerth ✅
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user