diff options
author | Liav A <liavalb@gmail.com> | 2022-05-05 13:59:47 +0300 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-02-19 15:01:01 -0700 |
commit | b2da5d3e62d4e800a0fbb47537e6b613c89a26b8 (patch) | |
tree | 0866e10b2b18ba919af4849463d18b54615602c1 /Kernel/Graphics | |
parent | 016fedbd207e171e843d69aab992e21b138d90aa (diff) | |
download | serenity-b2da5d3e62d4e800a0fbb47537e6b613c89a26b8.zip |
Kernel/Graphics: Allow Intel DisplayConnector to not have console
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r-- | Kernel/Graphics/Intel/NativeDisplayConnector.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Graphics/Intel/NativeDisplayConnector.cpp b/Kernel/Graphics/Intel/NativeDisplayConnector.cpp index 2a7c8d6693..d25f8c6f6a 100644 --- a/Kernel/Graphics/Intel/NativeDisplayConnector.cpp +++ b/Kernel/Graphics/Intel/NativeDisplayConnector.cpp @@ -72,15 +72,15 @@ ErrorOr<void> IntelNativeDisplayConnector::set_safe_mode_setting() void IntelNativeDisplayConnector::enable_console() { VERIFY(m_control_lock.is_locked()); - VERIFY(m_framebuffer_console); - m_framebuffer_console->enable(); + if (m_framebuffer_console) + m_framebuffer_console->enable(); } void IntelNativeDisplayConnector::disable_console() { VERIFY(m_control_lock.is_locked()); - VERIFY(m_framebuffer_console); - m_framebuffer_console->disable(); + if (m_framebuffer_console) + m_framebuffer_console->disable(); } ErrorOr<void> IntelNativeDisplayConnector::flush_first_surface() |