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:
parent
4807d32139
commit
e537e2690a
5 changed files with 58 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue