mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
regl's destroy function destroys all resources created with it; so does GPUDevice::destroy.
This commit is contained in:
@@ -162,7 +162,7 @@ export const destroy = (rain) => {
|
||||
window.removeEventListener("dblclick", doubleClick);
|
||||
cache.clear();
|
||||
tick.cancel(); // stop RAF
|
||||
regl.destroy(); // release all GPU resources & event listeners
|
||||
regl.destroy(); // releases all GPU resources & event listeners
|
||||
rain.destroyed = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user