@predy-js/render-interface 0.1.79 → 0.1.81
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.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/dist/statistic.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Name: @predy-js/render-interface
|
3
3
|
* Description: undefined
|
4
4
|
* Author: undefined
|
5
|
-
* Version: v0.1.
|
5
|
+
* Version: v0.1.81
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -2946,7 +2946,12 @@ var GLGPURenderer = /** @class */ (function () {
|
|
2946
2946
|
GLGPURenderer.prototype.deleteGPUBuffer = function (buffer) {
|
2947
2947
|
if (buffer && !this._isDestroyed) {
|
2948
2948
|
arrRemove(this._buffers, buffer);
|
2949
|
-
|
2949
|
+
var handle = buffer.glBuffer;
|
2950
|
+
this.gl.deleteBuffer(handle);
|
2951
|
+
if (handle) {
|
2952
|
+
//@ts-expect-error safe to assign
|
2953
|
+
handle._isDestroyed = true;
|
2954
|
+
}
|
2950
2955
|
//@ts-expect-error safe to assign
|
2951
2956
|
delete buffer.glBuffer;
|
2952
2957
|
}
|
@@ -4611,9 +4616,7 @@ var MarsMaterialDataBlock = /** @class */ (function () {
|
|
4611
4616
|
});
|
4612
4617
|
}
|
4613
4618
|
forEach(this.uboBufferMap, function (ubo) {
|
4614
|
-
|
4615
|
-
ubo.destroy();
|
4616
|
-
}
|
4619
|
+
ubo === null || ubo === void 0 ? void 0 : ubo.destroy();
|
4617
4620
|
});
|
4618
4621
|
// @ts-expect-error safe to assign
|
4619
4622
|
this.uboBufferMap = {};
|
@@ -5844,7 +5847,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5844
5847
|
return MarsSharedGeometry;
|
5845
5848
|
}(MarsGeometry));
|
5846
5849
|
|
5847
|
-
consoleLog('version: ' + "0.1.
|
5850
|
+
consoleLog('version: ' + "0.1.81");
|
5848
5851
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5849
5852
|
|
5850
5853
|
var RI = /*#__PURE__*/Object.freeze({
|