mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/WebGL: Implement getContextAttributes()
This commit is contained in:
parent
a8c282a30e
commit
c817eb8d2b
Notes:
github-actions[bot]
2024-12-05 08:57:56 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c817eb8d2b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2776
8 changed files with 22 additions and 18 deletions
|
@ -131,6 +131,13 @@ bool WebGLRenderingContext::is_context_lost() const
|
|||
return m_context_lost;
|
||||
}
|
||||
|
||||
Optional<WebGLContextAttributes> WebGLRenderingContext::get_context_attributes()
|
||||
{
|
||||
if (is_context_lost())
|
||||
return {};
|
||||
return m_actual_context_parameters;
|
||||
}
|
||||
|
||||
void WebGLRenderingContext::set_size(Gfx::IntSize const& size)
|
||||
{
|
||||
context().set_size(size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue