evanw / glfx.js

An image effects library for JavaScript using WebGL
https://evanw.github.io/glfx.js/
MIT License
3.28k stars 403 forks source link

one iphone safair make an image bug? #36

Closed kosgug closed 7 years ago

kosgug commented 7 years ago

hi,

on my safair, toDataURL() got data be image src attr, but, its had overturn

who can give a suggest to fix it.

thanks

NicholaAlkhouri commented 7 years ago

Hello, i have the same problem too, any suggestions please?

kosgug commented 7 years ago

I just overturn the final image on safair,it's may be webgl bug, so you can try it by this way.

NicholaAlkhouri commented 7 years ago

Thats exactly what i'm doing, i'm using matrixWrap to flip the image vertically in case of safari browser fxCanvas.draw(texture).matrixWarp([[1,0],[0,-1]], false, true);

Thanks

kosgug commented 7 years ago

So beautiful code ! Thanks.