xrandr: make sure that output_id and old_mode are declared
xrandr: don't restore resolution if output was disconnected during game
xrandr: move restore resolution to separated function because it makes a mess...
Use singleton template for VAOManager (ex VBOGatherer)
Forgot to free a temp array.
Properly clean program object in load shader function.
Use stream_copy for tfb buffers.
Add a function that kills shaders and use it when reloading shader.

Thus there is no mesh corruption.
Fix leak
Fix hasGLExtension on Windows.

Windows requires loading the glGetStringi function explicitly.
Also included fallback for when it is not found.
Add icon to exe file as resource.

It's hard to test for me because currently I can compile it only on virtual machine and it takes long time.
But it should work.
Use a separate rtt for diffuse/specular
Port SunLight to TextureRead
Fix gl debug output rant about uninitialised sync
Port diffuse env map shaders
Port PointLight shader
Fix pointlight call
Made line endings consistent.
Merge remote-tracking branch 'origin/master' into no_floating

Conflicts:
	src/karts/kart.cpp