Popov72 5 년 전
부모
커밋
8cd90b4593
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Misc/khronosTextureContainer2.ts

+ 2 - 2
src/Misc/khronosTextureContainer2.ts

@@ -192,12 +192,12 @@ export class KhronosTextureContainer2 {
             internalTexture.format = data.transcodedFormat;
         }
 
+        internalTexture._gammaSpace = data.isInGammaSpace;
+
         if (data.errors) {
             throw new Error("KTX2 container - could not transcode the data. " + data.errors);
         }
 
-        internalTexture._gammaSpace = data.isInGammaSpace;
-
         for (let t = 0; t < data.mipmaps.length; ++t) {
             let mipmap = data.mipmaps[t];