@predy-js/render-interface 0.1.78 → 0.1.80

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/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.78
5
+ * Version: v0.1.80
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -2942,7 +2942,12 @@ var GLGPURenderer = /** @class */ (function () {
2942
2942
  GLGPURenderer.prototype.deleteGPUBuffer = function (buffer) {
2943
2943
  if (buffer && !this._isDestroyed) {
2944
2944
  arrRemove(this._buffers, buffer);
2945
- this.gl.deleteBuffer(buffer.glBuffer);
2945
+ var handle = buffer.glBuffer;
2946
+ this.gl.deleteBuffer(handle);
2947
+ if (handle) {
2948
+ //@ts-expect-error safe to assign
2949
+ handle._isDestroyed = true;
2950
+ }
2946
2951
  //@ts-expect-error safe to assign
2947
2952
  delete buffer.glBuffer;
2948
2953
  }
@@ -3574,7 +3579,7 @@ var KhronosTextureContainer = /** @class */ (function () {
3574
3579
  identifier[11] !== 0x0a) {
3575
3580
  throw Error('texture missing KTX identifier');
3576
3581
  }
3577
- // load the reset of the header in native 32 bit uint
3582
+ // load the reset of the header in native-ri 32 bit uint
3578
3583
  var dataSize = Uint32Array.BYTES_PER_ELEMENT;
3579
3584
  var headerDataView = new DataView(this.arrayBuffer, this.baseOffset + 12, 13 * dataSize);
3580
3585
  var endianness = headerDataView.getUint32(0, true);
@@ -4607,9 +4612,7 @@ var MarsMaterialDataBlock = /** @class */ (function () {
4607
4612
  });
4608
4613
  }
4609
4614
  forEach(this.uboBufferMap, function (ubo) {
4610
- if (ubo !== undefined) {
4611
- ubo.destroy();
4612
- }
4615
+ ubo === null || ubo === void 0 ? void 0 : ubo.destroy();
4613
4616
  });
4614
4617
  // @ts-expect-error safe to assign
4615
4618
  this.uboBufferMap = {};
@@ -5768,6 +5771,8 @@ var MarsRenderer = /** @class */ (function () {
5768
5771
  }
5769
5772
  return [];
5770
5773
  };
5774
+ MarsRenderer.prototype.invalid = function () {
5775
+ };
5771
5776
  MarsRenderer.prototype.requestAnimationFrame = function (cb) {
5772
5777
  return window.requestAnimationFrame(cb);
5773
5778
  };
@@ -5838,7 +5843,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5838
5843
  return MarsSharedGeometry;
5839
5844
  }(MarsGeometry));
5840
5845
 
5841
- consoleLog('version: ' + "0.1.78");
5846
+ consoleLog('version: ' + "0.1.80");
5842
5847
  var ModuleMsg = 'RI Package: @predy-js/render-interface';
5843
5848
 
5844
5849
  var RI = /*#__PURE__*/Object.freeze({