mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
regl's destroy function destroys all resources created with it; so does GPUDevice::destroy.
This commit is contained in:
@@ -209,8 +209,7 @@ export const destroy = (rain) => {
|
||||
window.removeEventListener("dblclick", doubleClick);
|
||||
cache.clear();
|
||||
cancelAnimationFrame(renderLoop); // stop RAF
|
||||
// TODO: destroy WebGPU resources
|
||||
device.destroy();
|
||||
device.destroy(); // This also destroys any objects created with the device
|
||||
rain.destroyed = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user