瀏覽代碼

Add some debug code

Popov72 4 年之前
父節點
當前提交
f80b1d8228
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;
         }