1
Fork 0
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:
Jesse Buhagiar 2021-04-24 01:45:09 +10:00 committed by Andreas Kling
parent e537e2690a
commit 1959efe063
2 changed files with 73 additions and 0 deletions

View file

@ -52,6 +52,7 @@ private:
Vector<GLTriangle> processed_triangles;
GLenum m_error = GL_NO_ERROR;
bool m_in_draw_state = false;
};
}