Merge remote-tracking branch 'origin/resources' into linux
Fixed linux build
Fixed compiler warnings with layer
Added return values to functions
Fixed release build
Fixed texture loading on Windows. (Apparently this assert actually works on Linux tough)
Merge branch 'linux' into resources