Closed raould closed 9 years ago
I'm also getting this error with dev HaxeFlixel, Firefox 39.0 on Windows 8.1 and 10, for those same haxelib versions. Latest Chrome and Opera are fine though.
@raould I added a check in ImageCanvasUtil copyPixels to make sure it didn't draw anything with width or height of 0 and that gets things rendering for me:
if (sourceImage.buffer.src != null) {
// New check
var width:Int = Math.floor(sourceRect.width);
var height:Int = Math.floor(sourceRect.height);
if(width == 0 || height == 0) {
return;
}
image.buffer.__srcContext.drawImage (sourceImage.buffer.src, Std.int (sourceRect.x + sourceImage.offsetX), Std.int (sourceRect.y + sourceImage.offsetY), Std.int (sourceRect.width), Std.int (sourceRect.height), Std.int (destPoint.x + image.offsetX), Std.int (destPoint.y + image.offsetY), Std.int (sourceRect.width), Std.int (sourceRect.height));
}
This is assuming it is this problem: http://stackoverflow.com/a/21608118/1333253
Ubuntu 14.04 lts x86, FF 39.0, just upgraded to lime 2.5.2, openfl 3.2.0, haxe 3.2.0. Trying to make something using HaxePunk. Same problem that I saw in lime 2.4.9 where things work ok in Chromium, but the non-tilemap sprites do not appear in Firefox.
IndexSizeError: Index or size is negative or greater than the allowed amount
on this line of code:
in this method: