@openglobus/openglobus-react 0.4.9 → 0.4.10
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 +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5103,8 +5103,13 @@ class nh {
|
|
|
5103
5103
|
}
|
|
5104
5104
|
_deleteBuffers() {
|
|
5105
5105
|
if (this._geoObjectHandler && this._geoObjectHandler._renderer) {
|
|
5106
|
-
let e = this._geoObjectHandler._renderer.handler
|
|
5107
|
-
|
|
5106
|
+
let e = this._geoObjectHandler._renderer.handler;
|
|
5107
|
+
if (e) {
|
|
5108
|
+
e.deleteTexture(this._colorTexture), e.deleteTexture(this._normalTexture), e.deleteTexture(this._metallicRoughnessTexture);
|
|
5109
|
+
let t = e.gl;
|
|
5110
|
+
t && (t.deleteBuffer(this._sizeBuffer), t.deleteBuffer(this._translateBuffer), t.deleteBuffer(this._vertexBuffer), t.deleteBuffer(this._rtcPositionHighBuffer), t.deleteBuffer(this._rtcPositionLowBuffer), t.deleteBuffer(this._qRotBuffer), t.deleteBuffer(this._rgbaBuffer), t.deleteBuffer(this._normalsBuffer), t.deleteBuffer(this._indicesBuffer), t.deleteBuffer(this._pickingColorBuffer), t.deleteBuffer(this._visibleBuffer), t.deleteBuffer(this._texCoordBuffer), t.deleteBuffer(this._localPositionBuffer));
|
|
5111
|
+
}
|
|
5112
|
+
this._colorTexture = null, this._normalTexture = null, this._metallicRoughnessTexture = null;
|
|
5108
5113
|
}
|
|
5109
5114
|
this._sizeBuffer = null, this._translateBuffer = null, this._vertexBuffer = null, this._rtcPositionHighBuffer = null, this._rtcPositionLowBuffer = null, this._qRotBuffer = null, this._rgbaBuffer = null, this._normalsBuffer = null, this._indicesBuffer = null, this._pickingColorBuffer = null, this._visibleBuffer = null, this._texCoordBuffer = null, this._localPositionBuffer = null;
|
|
5110
5115
|
}
|
|
@@ -16490,7 +16495,7 @@ vec3 Uncharted2ToneMapping(vec3 color){color*=exposure;return saturate(Uncharted
|
|
|
16490
16495
|
destroy() {
|
|
16491
16496
|
for (let e in this.controls) this.controls[e].remove();
|
|
16492
16497
|
for (let e = 0; e < this._renderNodesArr.length; e++) this._renderNodesArr[e].remove();
|
|
16493
|
-
this.div = null, this._renderNodesArr = [], this.renderNodes = {}, this.
|
|
16498
|
+
this.div = null, this._renderNodesArr = [], this.renderNodes = {}, this.controls = {}, this.controlsBag = {}, this.colorObjects.clear(), this._pickingCallbacks = [], this.pickingFramebuffer = null, this._tempPickingPix_ = null, this._depthCallbacks = [], this.depthFramebuffer = null, this.sceneFramebuffer = null, this.blitFramebuffer = null, this.toneMappingFramebuffer = null, this._entityCollections = [[]], this.handler.ONCANVASRESIZE = null, this.handler.destroy(), this._initialized = !1;
|
|
16494
16499
|
}
|
|
16495
16500
|
}
|
|
16496
16501
|
const jn = "/res", Tl = class $i {
|