Merge branch 'develop3d' of https://github.com/mono/MonoGame into develop3d
Merge branch 'develop3d' of https://github.com/mono/MonoGame into develop3d
Provided additional information in (re)thrown exceptions.
Merge pull request #1177 from Qbit86/develop3d

Provided additional information in (re)thrown exceptions.
Merge branch 'develop3d' of https://github.com/mono/MonoGame into develop3d
Fix disposing of ShaderProgramCache
Fixes issues #1071, #1181
Also fixes project templates for Windows and Linux to always dispose of the Game object.
Reset Texture's cached GL SamplerState when device is reset

The cached sampler state was being persisted between device resets. After a context lost event, the GL sampler states are reset to default but the cached state was not. This meant that if your game used a single non-default sampler state, after a device reset it would never get applied.
Use TimeSpan.FromTicks() to calculate default TargetElapsedTime
Fixes issue #1184
TimeSpan.FromSeconds() has an accuracy of 3 decimal places only.  TimeSpan.FromTicks() is more accurate, resulting in the expected target elapsed time of 0.0166667 rather than 0.017.

Reference: http://msdn.microsoft.com/en-us/library/system.timespan.fromticks.aspx
Merge pull request #1183 from Aranda/samplerstate_resume

Reset Texture's cached GL SamplerState when device is reset
Merge pull request #1185 from slygamer/issue1184

Use TimeSpan.FromTicks() to calculate default TargetElapsedTime
Merge pull request #1182 from slygamer/issue1181

Fix disposing of ShaderProgramCache
Merge branch 'develop3d' into windesktop
Merge branch 'windesktop' of github.com:SickheadGames/MonoGame into windesktop