aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 118 forks source link

Making screenshot, platform bug #311

Open alamboley opened 9 years ago

alamboley commented 9 years ago

Long story: http://www.aymericlamboley.fr/blog/taking-screenshot-with-flambe-fighting-the-multi-platforms/

Short story: it sounds there is a platform bug, it might be an issue with the Base64 or most probably with the createTexture, render or readPixels functions.

ncannasse commented 9 years ago

For Flash it seems an issue about the PNG bytes which might use BGRA instead of RGBA encoding. For Canvas most likely the canvas is wrongly resized before storing the image For WebGL a random guess would be that the render target does not attach a depth buffer ?