@pirireis/webglobeplugins 1.1.20 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "1.1.20",
3
+ "version": "1.1.23",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -211,9 +211,9 @@ The following is the glsl uniform block: ${CameraUniformBlockString}`;
211
211
  const gl = this.gl;
212
212
  const ubo = this.ubo;
213
213
  gl.deleteBuffer(ubo);
214
- if (this.attachments.size > 0) {
215
- throw new Error("There are still attachments registered to CameraUniformBlockTotem during free()");
216
- }
214
+ this.attachments.forEach((attachment) => {
215
+ attachment.free();
216
+ });
217
217
  }
218
218
  readBuffer() {
219
219
  const gl = this.gl;