mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
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:
parent
bed0f3466a
commit
e27b077c2a
Notes:
sideshowbarker
2024-07-17 23:15:39 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/e27b077c2a4 Pull-request: https://github.com/SerenityOS/serenity/pull/11148
2 changed files with 6 additions and 0 deletions
|
@ -33,4 +33,9 @@ void make_context_current(GLContext* context)
|
|||
g_gl_context = context;
|
||||
}
|
||||
|
||||
void present_context(GLContext* context)
|
||||
{
|
||||
context->present();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -93,5 +93,6 @@ public:
|
|||
|
||||
OwnPtr<GLContext> create_context(Gfx::Bitmap&);
|
||||
void make_context_current(GLContext*);
|
||||
void present_context(GLContext*);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue