mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibAccelGfx+LibWeb+WebContent: Handle OpenGL Context init errors
Now, if OpenGL context fails, an error will be returned and a message printed, instead of crashing.
This commit is contained in:
parent
315c95a1ce
commit
980b61470c
4 changed files with 65 additions and 15 deletions
|
@ -20,7 +20,7 @@ namespace AccelGfx {
|
|||
|
||||
class Context {
|
||||
public:
|
||||
static OwnPtr<Context> create();
|
||||
static ErrorOr<NonnullOwnPtr<Context>> create();
|
||||
|
||||
Context()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue