mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +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
2 changed files with 6 additions and 0 deletions
|
@ -33,4 +33,9 @@ void make_context_current(GLContext* context)
|
||||||
g_gl_context = context;
|
g_gl_context = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void present_context(GLContext* context)
|
||||||
|
{
|
||||||
|
context->present();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,5 +93,6 @@ public:
|
||||||
|
|
||||||
OwnPtr<GLContext> create_context(Gfx::Bitmap&);
|
OwnPtr<GLContext> create_context(Gfx::Bitmap&);
|
||||||
void make_context_current(GLContext*);
|
void make_context_current(GLContext*);
|
||||||
|
void present_context(GLContext*);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue