1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibGL: Implement glGetError and underlying function

This implements `glGetError` and correctly sets the state machine's
error macro (similar to LibC `errno`) when an invalid operation is
performed. This is reset on completion of a successful operation.
This commit is contained in:
Jesse Buhagiar 2021-04-23 23:48:28 +10:00 committed by Andreas Kling
parent 4807d32139
commit e537e2690a
5 changed files with 58 additions and 4 deletions

View file

@ -29,3 +29,8 @@ void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
g_gl_context->gl_viewport(x, y, width, height);
}
GLenum glGetError()
{
return g_gl_context->gl_get_error();
}