We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a GraphicsDevice as so:
GraphicsAdapter adapter = GraphicsAdapter.DefaultAdapter; GraphicsProfile profile = GraphicsProfile.Reach; PresentationParameters pp = new PresentationParameters() { DeviceWindowHandle = windowHandle, BackBufferWidth = Math.Max(width, 1), BackBufferHeight = Math.Max(height, 1), }; _device = new GraphicsDevice(adapter, profile, pp);
MonoGame fails internally with a NullReferenceException at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.CurrentDisplayMode.get().
Here's a few images of the locals and the call stack.
The text was updated successfully, but these errors were encountered:
Did you ever find a solution to this? I've run into the same issue.
Sorry, something went wrong.
Consequence of #2586. Closing this since it's easier to track the cause and this will be fixed when #2586 is fixed.
No branches or pull requests
When creating a GraphicsDevice as so:
MonoGame fails internally with a NullReferenceException at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.CurrentDisplayMode.get().
Here's a few images of the locals and the call stack.
The text was updated successfully, but these errors were encountered: