fixing some memleaks
copy-paste error
add assert in case ftell fails
fix typo
fix coverity issues
Merge remote-tracking branch 'upstream/master'
Revert "Fixed running on hd3000 (8192 was too big for my system, not sure"

This reverts commit 748dcf1e15e1a33100f90a615e546765307fdf58.
Shadow: very crude csm support
Shadow: Tweak bias
Create a BO with texture_2d_array for shadows.
Merge pull request #37 from KroArtem/master

Fix coverity issues (memleaks, copy-paste error)
Merge remote-tracking branch 'upstream/master' into new_login