After testing various graphics buffer dimensions and fullscreen mode I for some reason now receive the following error:
‘System.NullReferenceException: ‘Object reference not set to an instance of an object.’
which occurs as a result of the following code:
public virtual void LoadContent() {
if (content == null) {content = new ContentManager(screenManager.Game.Services,“Content”);}
}
This code itself is not the issue, just simply that ContentManager no longer seems to exist. Prior to this error occurring I did experience a crash when testing fullscreen mode. Could the crash have somehow corrupted the Monogame graphics code/files?
What needs to be done to re-establish the ContentManager?
Any assistance will be most appreciated, as I currently cannot run my game even with the same code that has worked fine until now.