mirror of https://github.com/mosra/magnum.git
Browse Source
In some cases the GL context creation might success without error, but the created version is one that we don't want (e.g. software GDI rasterizer on Windows). Previously the Context class constructor just exited the application and it was impossible to react on that from the application side (for example reducing some context feature requirements). Now there is Platform::Context::tryCreate(), which returns either created instance or `nullptr` if the instance creation failed with some error. That is now used in all Platform::*Application implementations.pull/116/head
13 changed files with 66 additions and 28 deletions
Loading…
Reference in new issue