Merge pull request #92 from delahee/master

fixed a recurring NPE when loading swf with dependencies
This commit is contained in:
Joshua Granick
2014-02-26 07:24:24 -08:00

View File

@@ -3234,10 +3234,11 @@ value lime_bitmap_data_from_bytes(value inRGBBytes, value inAlphaBytes)
return alloc_null();
Surface *surface = Surface::LoadFromBytes(bytes.data,bytes.length);
surface->SetAllowTrans(true);
if (surface)
{
surface->SetAllowTrans(true);
if (!val_is_null(inAlphaBytes))
{
ByteData alphabytes;