mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibAccelGfx: Deallocate VAO and VBOs in fill_rect_with_linear_gradient
Fixes memory leak in fill_rect_with_linear_gradient()
This commit is contained in:
parent
495b0f2bcc
commit
9a66f31b64
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 9a66f31b64
Pull-request: https://github.com/SerenityOS/serenity/pull/22089
1 changed files with 4 additions and 0 deletions
|
@ -537,6 +537,10 @@ void Painter::fill_rect_with_linear_gradient(Gfx::FloatRect const& rect, Readonl
|
|||
|
||||
GL::enable_blending(GL::BlendFactor::One, GL::BlendFactor::OneMinusSrcAlpha);
|
||||
GL::draw_arrays(GL::DrawPrimitive::Triangles, vertices.size() / 2);
|
||||
|
||||
GL::delete_buffer(vbo_vertices);
|
||||
GL::delete_buffer(vbo_colors);
|
||||
GL::delete_vertex_array(vao);
|
||||
}
|
||||
|
||||
void Painter::save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue