mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibGL: Implement glGetProgramiv
This commit is contained in:
parent
424e0a2792
commit
1b7b6e6c91
6 changed files with 56 additions and 0 deletions
|
@ -54,4 +54,13 @@ ErrorOr<void> Program::link()
|
|||
return {};
|
||||
}
|
||||
|
||||
size_t Program::info_log_length() const
|
||||
{
|
||||
if (!m_info_log.has_value())
|
||||
return 0;
|
||||
|
||||
// Per the spec we return the size including the null terminator
|
||||
return m_info_log.value().bytes().size() + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue