소스 검색

test compressed format instead of texture format

Nicolas Cannasse 3 년 전
부모
커밋
082c9b3d91
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      h3d/mat/BigTexture.hx

+ 2 - 2
h3d/mat/BigTexture.hx

@@ -167,8 +167,8 @@ class BigTexture {
 		var tsize = t.getSize();
 		var q = allocPos(tsize.width,tsize.height);
 		#if !hl
-		if( t.getFormat() == Dds )
-			throw "BigTexture does not support DDS on this platform for "+t.entry.path;
+		if( t.getPixelFormat().match(S3TC(_)) )
+			throw "BigTexture does not support compressed textures on this platform for "+t.entry.path;
 		#end
 		if( q == null )
 			return null;