mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
LibWeb: Create AccelGfx context only once in PageClient
Fixes silly bug when AccelGfx always was created twice.
This commit is contained in:
parent
dbb3c07e56
commit
5a29440bdf
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/5a29440bdf Pull-request: https://github.com/SerenityOS/serenity/pull/23053
|
@ -77,7 +77,7 @@ PageClient::PageClient(PageHost& owner, u64 id)
|
|||
dbgln("Failed to create AccelGfx context: {}", context.error());
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
m_accelerated_graphics_context = AccelGfx::Context::create().release_value();
|
||||
m_accelerated_graphics_context = context.release_value();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue