diff --git a/plugins/cube/cube.cpp b/plugins/cube/cube.cpp index 1efbe68fe..4d94e1efb 100644 --- a/plugins/cube/cube.cpp +++ b/plugins/cube/cube.cpp @@ -81,6 +81,17 @@ class wayfire_cube : public wf::per_output_plugin_instance_t, public wf::pointer } } + ~cube_render_instance_t() + { + OpenGL::render_begin(); + for (auto& buf : framebuffers) + { + buf.release(); + } + + OpenGL::render_end(); + } + void schedule_instructions( std::vector& instructions, const wf::render_target_t& target, wf::region_t& damage) override