Fix wrong function pointer to glFramebufferTextureLayer.

Remove unused variable.
Tabs -> spaces
Fix array type detection of gl_Material.
Update travis config