Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

fix for BlendMode.isRegistered function error when calling it early #1106

Closed MatseFR closed 1 year ago

MatseFR commented 1 year ago

if you call this when your main Starling class is created or added to stage, it results in an error because sBlendModes is null. Other BlendMode methods check for this and call registerDefaults() if needed so I did the same

PrimaryFeather commented 1 year ago

Ah, that's a good find — thanks for the quick fix, Mathieu! 🙏