mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Clear texture allocated for stacking context painting
In OpenGL newly allocated texture has undefined initial state so we need to clear it before stacking context painting.
This commit is contained in:
parent
24da32c884
commit
7a0191cbe9
Notes:
sideshowbarker
2024-07-16 18:06:41 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7a0191cbe9
Pull-request: https://github.com/SerenityOS/serenity/pull/22090
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ CommandResult PaintingCommandExecutorGPU::push_stacking_context(float opacity, b
|
|||
auto canvas = AccelGfx::Canvas::create(source_paintable_rect.size());
|
||||
painter->set_target_canvas(canvas);
|
||||
painter->translate(-source_paintable_rect.location().to_type<float>());
|
||||
painter->clear(Color::Transparent);
|
||||
|
||||
auto source_rect = source_paintable_rect.to_type<float>().translated(-transform.origin);
|
||||
auto transformed_destination_rect = affine_transform.map(source_rect).translated(transform.origin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue