1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

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

View file

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