So after upgrading from 4.5.0 to 4.5.1 there are some strange things going on here…
(CPP target, Windows 10, Haxe 3.2.1, hxcpp 3.4.2)
First problem is with assets from swf-files:
So this works fine in 4.5.0:
<library path="assets/assets.swf" type="swflite" generate="true" preload="true" embed="true" />
var mcAsset = new MCAsset();
In 4.5.1 it wont compile:
DefaultAssetLibrary.hx:1523: characters 83-141 : Should extend by using a class :
@:file("bin/windows/cpp/release/obj/tmp/lib/assets.json") #if display private #end class __ASSET__lib_assets_json extends lime.utils.Bytes {}
So, if i remove the embed=“true”
<library path="assets/assets.swf" type="swflite" generate="true" preload="true" />
The application compiles, but crashes the moment i run
new MCAsset();
Not sure whats going on here? Did something change from 4.5.0 to 4.5.1?
For now this is broken for me, i cant use 4.5.1.
Second problem:
This also works fine in 4.5.0:
texture = stage.stage3Ds[0].context3D.createTexture(1920, 512, BGRA, true);
In 4.5.1 the same line crashes the application.
However; if i wait 200ms after application start… it works…
Or if i first create a power-of-two texture then the application does not crash:
stage.stage3Ds[0].context3D.createTexture(512, 512, BGRA, true);
texture = stage.stage3Ds[0].context3D.createTexture(1920, 512, BGRA, true);
Is there any meaning behind the way this works or is it just a bug?
Thanks!