Force texture to be uploaded to the GPU
Fixes an issue where multi-sparrow characters cause a stutter when the alternative sprites are displayed
This commit is contained in:
@@ -177,6 +177,7 @@ class FunkinMemory
|
|||||||
var sprite = new flixel.FlxSprite();
|
var sprite = new flixel.FlxSprite();
|
||||||
sprite.loadGraphic(graphic);
|
sprite.loadGraphic(graphic);
|
||||||
sprite.draw(); // Draw sprite and load it into game's memory.
|
sprite.draw(); // Draw sprite and load it into game's memory.
|
||||||
|
graphic.bitmap?.getTexture(FlxG.stage.context3D); // Just in case that didn't work...
|
||||||
sprite.destroy();
|
sprite.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user