1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

LibGL: Implement glFlush() and glFinish()

This commit is contained in:
Stephan Unverwerth 2021-05-14 21:47:25 +02:00 committed by Andreas Kling
parent 3429b44161
commit 2b9ad11bd8
5 changed files with 36 additions and 0 deletions

View file

@ -839,6 +839,26 @@ void SoftwareGLContext::gl_new_list(GLuint list, GLenum mode)
m_current_listing_index = CurrentListing { {}, static_cast<size_t>(list - 1), mode };
}
void SoftwareGLContext::gl_flush()
{
if (m_in_draw_state) {
m_error = GL_INVALID_OPERATION;
return;
}
// No-op since SoftwareGLContext is completely synchronous at the moment
}
void SoftwareGLContext::gl_finish()
{
if (m_in_draw_state) {
m_error = GL_INVALID_OPERATION;
return;
}
// No-op since SoftwareGLContext is completely synchronous at the moment
}
void SoftwareGLContext::present()
{
m_rasterizer.blit_to(*m_frontbuffer);