Skip to content

Commit eb85a41

Browse files
committed
water: Free extra buffers when plugin is unloaded
This frees the extra buffers required for water if the plugin is unloaded while the effect is still active.
1 parent ccb9046 commit eb85a41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/water.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ class wayfire_water_screen : public wf::per_output_plugin_instance_t, public wf:
431431

432432
wf::gles::run_in_context([&]
433433
{
434+
buffer[0].free();
435+
buffer[1].free();
434436
program[0].free_resources();
435437
program[1].free_resources();
436438
program[2].free_resources();

0 commit comments

Comments
 (0)