LibGL: Add GL::present_context()

This provides a convenience method that performs the virtual resolution
for `::present` on the provided `GLContext`.
This commit is contained in:
Jelle Raaijmakers 2021-12-01 12:23:39 +01:00 committed by Andreas Kling
parent bed0f3466a
commit e27b077c2a
Notes: sideshowbarker 2024-07-17 23:15:39 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -33,4 +33,9 @@ void make_context_current(GLContext* context)
g_gl_context = context;
}
void present_context(GLContext* context)
{
context->present();
}
}

View file

@ -93,5 +93,6 @@ public:
OwnPtr<GLContext> create_context(Gfx::Bitmap&);
void make_context_current(GLContext*);
void present_context(GLContext*);
}