Kent Posted June 7, 2016 Share Posted June 7, 2016 By removing _transparentPrimitiveInfo in the dispose function, I solved this problem. RenderablePrim2D.prototype.dispose = function () { if (!_super.prototype.dispose.call(this)) { return false; } if (this._modelRenderInstanceID) { this._modelRenderCache.removeInstanceData(this._modelRenderInstanceID); this._modelRenderInstanceID = null; } if (this._modelRenderCache) { this._modelRenderCache.dispose(); this._modelRenderCache = null; } if (this._transparentPrimitiveInfo) { this.renderGroup._renderableData.removeTransparentPrimitiveInfo(this._transparentPrimitiveInfo); this._transparentPrimitiveInfo = null; } if (this._instanceDataParts) { this._instanceDataParts.forEach(function (p) { p.freeElements(); }); this._instanceDataParts = null; } return true; }; Quote Link to comment Share on other sites More sharing options...
Nockawa Posted June 13, 2016 Share Posted June 13, 2016 Hi, thanks for reporting, the bug is already fixed on my repo, but I didn't sync with the official nor update the playground. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.