1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +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:
Aliaksandr Kalenik 2024-01-24 15:27:03 +01:00 committed by Andreas Kling
parent 315c95a1ce
commit 980b61470c
4 changed files with 65 additions and 15 deletions

View file

@ -20,7 +20,7 @@ namespace AccelGfx {
class Context {
public:
static OwnPtr<Context> create();
static ErrorOr<NonnullOwnPtr<Context>> create();
Context()
{