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:
parent
dbb3c07e56
commit
5a29440bdf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue