diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-09-16 05:58:30 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-16 15:32:38 +0200 |
commit | 8ed5ed3ec07f77b8be8c286c43fafb60dbc6c495 (patch) | |
tree | b601ad54e5a51ec174a76ed1c923ad6c6e3b624d /Tests/LibGL/TestAPI.cpp | |
parent | 7e5080ea53b12ed897fd71881ada1acfdda1dc85 (diff) | |
download | serenity-8ed5ed3ec07f77b8be8c286c43fafb60dbc6c495.zip |
LibGL: Make GL::create_context fallible
Propagate errors in places that are already set up to handle them, like
WebGLRenderingContext and the Tubes demo, and convert other callers
to using MUST.
Diffstat (limited to 'Tests/LibGL/TestAPI.cpp')
-rw-r--r-- | Tests/LibGL/TestAPI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibGL/TestAPI.cpp b/Tests/LibGL/TestAPI.cpp index 7f717db686..b539c5db88 100644 --- a/Tests/LibGL/TestAPI.cpp +++ b/Tests/LibGL/TestAPI.cpp @@ -11,7 +11,7 @@ static NonnullOwnPtr<GL::GLContext> create_testing_context() { auto bitmap = MUST(Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { 1, 1 })); - auto context = GL::create_context(*bitmap); + auto context = MUST(GL::create_context(*bitmap)); GL::make_context_current(context); return context; } |