GraphicsResource.Dispose() requires GraphicsDeviceManager

Fixes issue #2805
Merge pull request #2806 from thefiddler/flushfix

GraphicsResource requires GraphicsDeviceManager