This simple fiddle shows two red images on Chrome 61 on Windows, when hardware acceleration is active. It is supposed to show a red image on the left, and a green one on the right.
This affects StageXL using a 2D context, if you use context2D.putImageData(ImageData) to fill your HtmlCanvasElement inside a BitmapData or RenderTexture. We have our own extensions to StageXL, and use this method a lot, but I'm not sure how many StageXL users are in our boat.
There is a workaround -- always do a context2D.getImageData() on at least one pixel, before every putImageData call (or a set of calls to the same canvas only). Turning off hardware acceleration also fixes the issue.
Feel free to close this issue after the jsfiddle no longer shows this bug on Chrome :) Good luck everyone.
This is more an FYI, as it is entirely a Chrome 61 bug, and will likely be fixed by Chrome 62 release.
https://jsfiddle.net/tnawf4kj/5/
This simple fiddle shows two red images on Chrome 61 on Windows, when hardware acceleration is active. It is supposed to show a red image on the left, and a green one on the right.
This affects StageXL using a 2D context, if you use context2D.putImageData(ImageData) to fill your HtmlCanvasElement inside a BitmapData or RenderTexture. We have our own extensions to StageXL, and use this method a lot, but I'm not sure how many StageXL users are in our boat.
There is a workaround -- always do a context2D.getImageData() on at least one pixel, before every putImageData call (or a set of calls to the same canvas only). Turning off hardware acceleration also fixes the issue.
Feel free to close this issue after the jsfiddle no longer shows this bug on Chrome :) Good luck everyone.