elm-webgl
elm-webgl copied to clipboard
Texture loading does not work, causes runtime error "fun(...) is not a function"
loadTextureWithFilter is defined in WebGL.elm as
loadTextureWithFilter filter url = Native.WebGL.loadTextureRaw Linear url
However, Native.WebGL.loadTextureRaw only takes one argument, that being the URL. Since elm tries to apply the return value of Native.WebGL.loadTextureRaw, which isn't a function, to Linear, this results in a JS type error at runtime, displaying "fun(...) is not a function" on screen (in firefox anyhow).
Semi-relatedly, it appears that Native.WebGL.loadTexture is no longer used anywhere.
Seems like this is a dupliacte of #36 actually
Re-opening since it's not actually fixed yet, so seems like a good idea.