fix: Bill forgot to remove

I saw this commit to fix a mask error 354f72c9c5 but I believe the issue is still here. I have this one room, if I enter it once; it works fine. If I re-enter the room this errors pops up

Uncaught TypeError: Cannot read properties of null (reading 'width')
    at RenderTexture2.get (Texture.ts:648:26)
    at _PlaneTextureCache.clearAndFillRenderTexture (RoomTextureUtils.ts:96:38)
    at _PlaneTextureCache.createAndFillRenderTexture (RoomTextureUtils.ts:76:21)
    at _RoomPlane.updateMask (RoomPlane.ts:791:55)
    at _RoomPlane.getTexture (RoomPlane.ts:327:22)
    at _RoomPlane.update (RoomPlane.ts:571:34)
    at _RoomVisualization.updatePlanes (RoomVisualization.ts:744:30)
    at _RoomVisualization.update (RoomVisualization.ts:190:17)
    at RoomSpriteCanvas.renderObject (RoomSpriteCanvas.ts:455:41)
    at RoomSpriteCanvas.render (RoomSpriteCanvas.ts:372:51)
This commit is contained in:
duckietm 2023-03-24 08:19:40 +01:00
parent 96d65d4f3f
commit e6982421f0
1 changed files with 0 additions and 6 deletions

View File

@ -249,12 +249,6 @@ export class RoomPlane implements IRoomPlane {
this._rectangleMasks = null;
this._maskPixels = null;
if (this._maskBitmapData) {
this._maskBitmapData.destroy(true);
this._maskBitmapData = null;
}
this._disposed = true;
}