2
0
Эх сурвалжийг харах

fix mipmap gen on last level

Nicolas Cannasse 4 жил өмнө
parent
commit
0e829be1fc
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      h3d/mat/Texture.hx

+ 1 - 1
h3d/mat/Texture.hx

@@ -301,7 +301,7 @@ class Texture {
 	}
 
 	function checkMipMapGen(mipLevel,layer) {
-		if( mipLevel == 0 && flags.has(MipMapped) && !flags.has(ManualMipMapGen) && (!flags.has(Cube) || layer == 5) )
+		if( mipLevel == 0 && flags.has(MipMapped) && !flags.has(ManualMipMapGen) && layer == layerCount - 1 )
 			mem.driver.generateMipMaps(this);
 	}