mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
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.
This commit is contained in:
parent
7e5080ea53
commit
8ed5ed3ec0
7 changed files with 14 additions and 20 deletions
|
@ -24,7 +24,7 @@
|
|||
static NonnullOwnPtr<GL::GLContext> create_testing_context(int width, int height)
|
||||
{
|
||||
auto bitmap = MUST(Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { width, height }));
|
||||
auto context = GL::create_context(*bitmap);
|
||||
auto context = MUST(GL::create_context(*bitmap));
|
||||
GL::make_context_current(context);
|
||||
|
||||
// Assume some defaults for our testing contexts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue