Prechádzať zdrojové kódy

test compressed format instead of texture format

Nicolas Cannasse 3 rokov pred
rodič
commit
082c9b3d91
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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;