@@ -423,7 +423,7 @@ class Tile {
**/
public static function fromPixels( pixels : hxd.Pixels ) : Tile {
var pix2 = pixels.makeSquare(true);
- var t = h3d.mat.Texture.fromPixels(pix2);
+ var t = h3d.mat.Texture.fromPixels(pix2, h3d.mat.Texture.nativeFormat);
if( pix2 != pixels ) pix2.dispose();
return new Tile(t, 0, 0, pixels.width, pixels.height);
}
@@ -120,7 +120,7 @@ class FontBuilder {
if( innerTex == null ) {
- innerTex = h3d.mat.Texture.fromPixels(pixels);
+ innerTex = h3d.mat.Texture.fromPixels(pixels, h3d.mat.Texture.nativeFormat);
font.tile = h2d.Tile.fromTexture(innerTex);
for( t in all )
t.setTexture(innerTex);