mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
LibWeb/WebGL: Switch context in AccelGfxContext destructor
Destructor of AccelGfxContext needs to make sure that correct OpenGL context is active so that destructors of its members could proceed destroying they resources (for example framebuffer owned by AccelGfx::Canvas). Fixes https://github.com/SerenityOS/serenity/issues/22879
This commit is contained in:
parent
215931daac
commit
21364711da
|
@ -163,6 +163,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
~AccelGfxContext()
|
||||
{
|
||||
activate();
|
||||
}
|
||||
|
||||
private:
|
||||
OwnPtr<AccelGfx::Context> m_context;
|
||||
NonnullRefPtr<AccelGfx::Canvas> m_canvas;
|
||||
|
|
Loading…
Reference in a new issue