wanting252
wanting252

Reputation: 1139

Error #3675: Texture format mismatch. in Starling

I use Starling 1.6 with Adobe AIR 17.0 And now this error just jumps from no place(previous version runs well). It happens before the AssetManager load done.

Even if I just use this simple code:

var bgTexture:Texture = Texture.fromBitmapData(new EMBED(), false, false, scale);

The error in this line:

fromBitmapData(bitmap.bitmapData, generateMipMaps, optimizeForRenderToTexture, scale, format, repeat)
format = "bgra";
generateMipMaps = false;
optimizeForRenderToTexture = false;
scale = 2;

This error happens! I follow the starling scaffow-mobile project.

Can you please help me explain and guide me how to solve this? Ask if you need any more detail please.

Upvotes: 0

Views: 567

Answers (1)

Arvind
Arvind

Reputation: 75

Use Texture.fromBitmap(); instead of Texture.fromBitmapData()

Upvotes: 1

Related Questions