mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
Kernel: Fix crash when opening GPU3DDevice without creating a context
This commit is contained in:
parent
3bbb5734af
commit
8601f74d5f
Notes:
sideshowbarker
2024-07-17 17:13:03 +09:00
Author: https://github.com/ccapitalK
Commit: 8601f74d5f
Pull-request: https://github.com/SerenityOS/serenity/pull/13106
Issue: https://github.com/SerenityOS/serenity/issues/13105
Reviewed-by: https://github.com/supercomputer7 ✅
2 changed files with 2 additions and 3 deletions
|
@ -127,7 +127,7 @@ private:
|
|||
Kernel::Graphics::VirtIOGPU::GraphicsAdapter& m_graphics_adapter;
|
||||
// Context used for kernel operations (e.g. flushing resources to scanout)
|
||||
ContextID m_kernel_context_id;
|
||||
HashMap<RefPtr<OpenFileDescription>, RefPtr<PerContextState>> m_context_state_lookup;
|
||||
HashMap<OpenFileDescription*, RefPtr<PerContextState>> m_context_state_lookup;
|
||||
// Memory management for backing buffers
|
||||
OwnPtr<Memory::Region> m_transfer_buffer_region;
|
||||
constexpr static size_t NUM_TRANSFER_REGION_PAGES = 256;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue