mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibAccelGfx+LibWeb: Store state of all stacking contexts in GPU painter
This change ensures that the GPU painting executor follows the pattern of the CPU executor, where the state is stored for each stacking context, but a painter is created only for those with opacity. Fixes crashing on apple.com because now save() and restore() are called on correct painters.
This commit is contained in:
parent
9a66f31b64
commit
24da32c884
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 24da32c884
Pull-request: https://github.com/SerenityOS/serenity/pull/22087
4 changed files with 20 additions and 11 deletions
|
@ -137,7 +137,7 @@ void main() {
|
|||
|
||||
HashMap<u32, GL::Texture> s_immutable_bitmap_texture_cache;
|
||||
|
||||
OwnPtr<Painter> Painter::create()
|
||||
NonnullOwnPtr<Painter> Painter::create()
|
||||
{
|
||||
auto& context = Context::the();
|
||||
return make<Painter>(context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue