Use the newly introduced material
Revert earlier bugfix attempt, causes other issues
Partial fix for objects not being cleaned up when they should. There's more left
Reenable GL 3.1 support on windows
Use glsl with GL >= 3.1
Use glVertexAttribDivisorARB

If GL 3.1 is supported but not 3.3, use glVertexAttribDivisorARB instead
of glVertexAttribDivisor
Add default texture to m_sun_interposer
Merge MAT_* with shadertype
Set normal map and detail map in material.cpp
Fix material detection
Improve debug msg