@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.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.
|
5
|
+
* Version: v0.1.81
|
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
|
-
|
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
|
}
|
@@ -4607,9 +4612,7 @@ var MarsMaterialDataBlock = /** @class */ (function () {
|
|
4607
4612
|
});
|
4608
4613
|
}
|
4609
4614
|
forEach(this.uboBufferMap, function (ubo) {
|
4610
|
-
|
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 = {};
|
@@ -5840,7 +5843,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5840
5843
|
return MarsSharedGeometry;
|
5841
5844
|
}(MarsGeometry));
|
5842
5845
|
|
5843
|
-
consoleLog('version: ' + "0.1.
|
5846
|
+
consoleLog('version: ' + "0.1.81");
|
5844
5847
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5845
5848
|
|
5846
5849
|
var RI = /*#__PURE__*/Object.freeze({
|