LibWeb: Create AccelGfx context only once in PageClient

Fixes silly bug when AccelGfx always was created twice.
This commit is contained in:
Aliaksandr Kalenik 2024-02-03 06:52:07 +01:00 committed by Alexander Kalenik
parent dbb3c07e56
commit 5a29440bdf
Notes: sideshowbarker 2024-07-17 02:28:18 +09:00

View file

@ -77,7 +77,7 @@ PageClient::PageClient(PageHost& owner, u64 id)
dbgln("Failed to create AccelGfx context: {}", context.error());
VERIFY_NOT_REACHED();
}
m_accelerated_graphics_context = AccelGfx::Context::create().release_value();
m_accelerated_graphics_context = context.release_value();
}
#endif
}