Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
Conflicts:
	CHANGELOG.md
	flixel/FlxG.hx
	flixel/system/frontEnds/BitmapFrontEnd.hx
  • Loading branch information
Gama11 committed Nov 20, 2014
2 parents 10782de + fd4634e commit 3910e2b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -232,6 +232,11 @@
* `FlxAnalog` and `FlxVirtualPad` have their own atlas with default graphic, so they propduce less drawcalls
* Added `FlxSpriteButton` which is button which label is a simple `FlxSprite`. It have useful `createTextLabel()` method, which generates sprite with text graphic

3.3.6
------------------------------
* Compatibility fix for OpenFL 2.1.6


3.3.5
------------------------------
* FlxTilemap:
Expand Down
17 changes: 14 additions & 3 deletions flixel/system/frontEnds/BitmapFrontEnd.hx
Expand Up @@ -333,14 +333,25 @@ class BitmapFrontEnd
if ((key != null) && _cache.exists(key))
{
var obj:FlxGraphic = _cache.get(key);
#if !nme
Assets.cache.bitmapData.remove(key);
#end
removeFromOpenFLCache(key);

This comment has been minimized.

Copy link
@sruloart

sruloart Nov 20, 2014

Contributor

What exactly happened?

This comment has been minimized.

Copy link
@mrcdk

mrcdk Nov 20, 2014

Contributor

They changed how to access the Asset cache.

This comment has been minimized.

Copy link
@sruloart

sruloart Nov 20, 2014

Contributor

Thanks!

_cache.remove(key);
obj.destroy();
}
}

private function removeFromOpenFLCache(key:String):Void
{
#if nme
return;
#end

#if (openfl <= "2.1.5")
Assets.cache.bitmapData.remove(key);
#else
Assets.cache.removeBitmapData(key);
#end
}

public function removeIfNoUse(graphic:FlxGraphic):Void
{
if (graphic != null && graphic.useCount == 0)
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Expand Up @@ -4,8 +4,8 @@
"license": "MIT",
"tags": ["game", "openfl", "flash", "neko", "cpp", "android", "ios", "cross"],
"description": "HaxeFlixel is a 2D game framework based on OpenFL that delivers cross-platform games.",
"version": "3.3.5",
"releasenote": "Several bugfixes, see the CHANGELOG.md for more details.",
"version": "3.3.6",
"releasenote": "Compatibility fix for OpenFL 2.1.6.",
"contributors": ["haxeflixel"],
"dependencies": { "lime": "", "openfl": "" }
}

0 comments on commit 3910e2b

Please sign in to comment.