Skip to content
New issue

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

Throw NoSuitableGraphicsDeviceException if graphics device creation fails #5130

Merged

Conversation

@MichaelDePiazzi
Copy link
Contributor

commented Aug 22, 2016

Resolves #5123

As per issue #5123, this catches any exceptions during graphics device creation and wraps them in a NoSuitableGraphicsDeviceException. This allows the MonoGame user to catch this exception and handle appropriately (e.g. informing the user to check that their graphics device is compatible and that drivers are up to date).

@tomspilman

This comment has been minimized.

Copy link
Member

commented Aug 26, 2016

Thanks @MichaelDePiazzi ... this works for me.

@tomspilman tomspilman added this to the 3.6 Release milestone Aug 26, 2016

@tomspilman tomspilman merged commit 847c69d into MonoGame:develop Aug 26, 2016

7 checks passed

Build Mac, iOS, and Linux Finished TeamCity Build MonoGame :: Build Mac : Running
Details
Build Windows, Web, Android, and OUYA Finished TeamCity Build MonoGame :: Build Windows : Running
Details
Generate Documentation Finished TeamCity Build MonoGame :: Generate Documentation : Running
Details
Package Mac and Linux Finished TeamCity Build MonoGame :: Package Mac and Linux : Running
Details
Package NuGet Finished TeamCity Build MonoGame :: Package NuGet : Running
Details
Package Windows SDK Finished TeamCity Build MonoGame :: Package Windows : Running
Details
Test Windows Finished TeamCity Build MonoGame :: Test Windows : Tests passed: 851, ignored: 7
Details

@MichaelDePiazzi MichaelDePiazzi deleted the MichaelDePiazzi:NoSuitableGraphicsDeviceException branch Aug 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.