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
commit 1959efe063
Notes: sideshowbarker 2024-07-18 18:32:43 +09:00
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;
};
}