소스 검색

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;
         }