mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 23:42:53 +03: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
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/21364711da Pull-request: https://github.com/SerenityOS/serenity/pull/22886 Issue: https://github.com/SerenityOS/serenity/issues/22879
@ -163,6 +163,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~AccelGfxContext()
|
||||
{
|
||||
activate();
|
||||
}
|
||||
|
||||
private:
|
||||
OwnPtr<AccelGfx::Context> m_context;
|
||||
NonnullRefPtr<AccelGfx::Canvas> m_canvas;
|
||||
|
Loading…
Reference in New Issue
Block a user