elm-community / elm-webgl

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

Nothing gets rendered until the program receives it's first message #23

Closed szabba closed 8 years ago

szabba commented 8 years ago

As we've discussed on Slack with @w0rm , it seems that elm-webgl doesn't render anything until after the program receives it's first message. I've made a gist that exhibits this behaviour. The conditions in lines https://gist.github.com/szabba/13a90267523f122d259a16fe9c5954be#file-main-elm-L18-L23 can be used to make it work immediately or after a five second delay.

To poke at the code locally, you can clone the gist

$ git clone https://gist.github.com/13a90267523f122d259a16fe9c5954be.git
szabba commented 8 years ago

:tada:

w0rm commented 8 years ago

@szabba I published 3.0.1 that contains this fix