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 /Userland/Applications/3DFileViewer | |
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 'Userland/Applications/3DFileViewer')
-rw-r--r-- | Userland/Applications/3DFileViewer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/3DFileViewer/main.cpp b/Userland/Applications/3DFileViewer/main.cpp index 431894dc97..ad71c307ef 100644 --- a/Userland/Applications/3DFileViewer/main.cpp +++ b/Userland/Applications/3DFileViewer/main.cpp @@ -59,7 +59,7 @@ private: constexpr u16 RENDER_WIDTH = 640; constexpr u16 RENDER_HEIGHT = 480; m_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { RENDER_WIDTH, RENDER_HEIGHT }).release_value_but_fixme_should_propagate_errors(); - m_context = GL::create_context(*m_bitmap); + m_context = MUST(GL::create_context(*m_bitmap)); start_timer(20); |