Sfoglia il codice sorgente

Add some debug code

Popov72 4 anni fa
parent
commit
f80b1d8228
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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;
         }