Merge pull request #5 from adrianbroher/master

Simplify the chunk rendering code.