Browse Source

Add some debug code

Popov72 4 years ago
parent
commit
f80b1d8228
1 changed files with 4 additions and 0 deletions
  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;
         }