1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibGL: Implement glGetProgramiv

This commit is contained in:
Stephan Unverwerth 2022-08-28 16:34:17 +02:00 committed by Andrew Kaster
parent 424e0a2792
commit 1b7b6e6c91
6 changed files with 56 additions and 0 deletions

View file

@ -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;
}
}