mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +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
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