mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibGL: Implement missing glDeleteLists
error conditions
This commit is contained in:
parent
2d59c9b6b6
commit
5def168f14
Notes:
sideshowbarker
2024-07-17 05:19:41 +09:00
Author: https://github.com/gmta
Commit: 5def168f14
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 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ void GLContext::gl_call_lists(GLsizei n, GLenum type, void const* lists)
|
|||
|
||||
void GLContext::gl_delete_lists(GLuint list, GLsizei range)
|
||||
{
|
||||
RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);
|
||||
RETURN_WITH_ERROR_IF(range < 0, GL_INVALID_VALUE);
|
||||
|
||||
if (m_listings.size() < list || m_listings.size() <= list + range)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue