mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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: 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 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue