elm-community / webgl

Moved to elm-explorations/webgl
https://package.elm-lang.org/packages/elm-explorations/webgl/latest
BSD 3-Clause "New" or "Revised" License
131 stars 18 forks source link

nonPowerOfTwoOptions does not work on mobile #49

Closed TheZoq2 closed 7 years ago

TheZoq2 commented 7 years ago

I am trying to load an image from a camera that is not a power of two using WebGL.Texture.loadWith nonPowerOfTwoOptions. It works fine on desktop in both firefox and chromium, but on android the texture does not render. The console output says the following

image

The khronos wiki says that it should be possible using the parameter that I think nonPowerOfTwoOptions set

I tried this on my own one plus one running android 6.0.1 and my brothers oneplus 3 running a later android version. It fails in both chromium and firefox.

TheZoq2 commented 7 years ago

Turns out I reported this too quickly and that the actual problem is that my images are larger than 2048x2048 which the phone GPUs don't support