Browse Source

Add some debug code

Popov72 4 năm trước cách đây
mục cha
commit
f80b1d8228
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/Materials/Textures/internalTexture.ts

+ 4 - 0
src/Materials/Textures/internalTexture.ts

@@ -459,6 +459,10 @@ export class InternalTexture {
         target._hardwareTexture = this._hardwareTexture;
         target._isRGBD = this._isRGBD;
 
+        // TODO WEBGPU debug code, remove this
+        (target as any)._released = false;
+        (target as any)._swapped = true;
+
         if (this._framebuffer) {
             target._framebuffer = this._framebuffer;
         }