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.
Added stubs for ResourceCreatedEventArgs and ResourceDestroyedEventArgs. Not used yet.
Added DIRECTX11_1 conditional to Windows 8 project.
Fixed GamePad to support DirectX 11 and 11.1.
Added new conditionals WINDOWS_MEDIA_ENGINE (Win8), WINDOWS_MEDIA_SESSION (Win7/Vista).
Started to add MediaSession implementation to MediaPlayer.
Disable window resizing by default.
Toggle maximize button on AllowUserResizing.
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