mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:07:36 +00:00
LibGL: Set GL error on some calls during begin/end
According to the OpenGL 2.x spec, some calls will set the current global error to `GL_INVALID_OPERATION` if they are used during a `glBegin`/`glEnd` block.
This commit is contained in:
parent
e537e2690a
commit
1959efe063
2 changed files with 73 additions and 0 deletions
|
@ -52,6 +52,7 @@ private:
|
|||
Vector<GLTriangle> processed_triangles;
|
||||
|
||||
GLenum m_error = GL_NO_ERROR;
|
||||
bool m_in_draw_state = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue