You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when creating SpecularBitmapTexture without a bitmap data object (i.e. null value) a BitmapData object is created with dimensions w:1, h:1 causing an exception w/text "Invalid bitmapData: Width and height must be power of 2 and cannot exceed 2048" in its parent class BitmapTexture in property setter bitmapData as TextureUtils.isBitmapDataValid returns false; fix: change default dimensions to w:2, h:2;
The text was updated successfully, but these errors were encountered:
@DerSchmale I could probably fix this but am assigning it to you just to make sure the suggested fix is a good one from your point of view. Let me know if you want me to fix it!
constructor
bmd = bmd? new BitmapData(bmd.width, bmd.height, false, 0xffffff) : new BitmapData(1, 1, false, 0xffffff);
and in
private function testSize() : void
w = 1;
h = 1;
ow, and line 80:
super.bitmapData = new BitmapData(_specularMap.width, specularMap.height, false, 0xffffff);
there's a missing _ for the second specularMap reference, calling getter instead and causing call stack to grow =)
when creating SpecularBitmapTexture without a bitmap data object (i.e. null value) a BitmapData object is created with dimensions w:1, h:1 causing an exception w/text "Invalid bitmapData: Width and height must be power of 2 and cannot exceed 2048" in its parent class BitmapTexture in property setter bitmapData as TextureUtils.isBitmapDataValid returns false; fix: change default dimensions to w:2, h:2;
The text was updated successfully, but these errors were encountered: