From 33f66dcb8fe67ca4d070130d74608c965345d08c Mon Sep 17 00:00:00 2001 From: koenditor Date: Sun, 16 Jun 2024 08:03:43 +0300 Subject: [PATCH] WebContent: Add missing ifdef --- Userland/Services/WebContent/PageClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Services/WebContent/PageClient.cpp b/Userland/Services/WebContent/PageClient.cpp index df3480988cb..c7294a9b6ae 100644 --- a/Userland/Services/WebContent/PageClient.cpp +++ b/Userland/Services/WebContent/PageClient.cpp @@ -207,7 +207,9 @@ void PageClient::paint(Web::DevicePixelRect const& content_rect, Gfx::Bitmap& ta { paint_options.should_show_line_box_borders = m_should_show_line_box_borders; paint_options.has_focus = m_has_focus; +#ifdef HAS_ACCELERATED_GRAPHICS paint_options.accelerated_graphics_context = m_accelerated_graphics_context.ptr(); +#endif paint_options.use_gpu_painter = s_use_gpu_painter; paint_options.use_experimental_cpu_transform_support = s_use_experimental_cpu_transform_support; page().top_level_traversable()->paint(content_rect, target, paint_options);