From 966f20d305345b3042dc1d37a1dd8833f3a4783b Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:13:34 +0300 Subject: renderer: refactor resources and flags (#13471) --- src/protocols/ImageCopyCapture.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/protocols/ImageCopyCapture.cpp') diff --git a/src/protocols/ImageCopyCapture.cpp b/src/protocols/ImageCopyCapture.cpp index eca3c939..b9cc25e2 100644 --- a/src/protocols/ImageCopyCapture.cpp +++ b/src/protocols/ImageCopyCapture.cpp @@ -7,6 +7,7 @@ #include "../desktop/view/Window.hpp" #include "../render/OpenGL.hpp" #include "../desktop/state/FocusState.hpp" +#include "render/Renderer.hpp" #include using namespace Screenshare; @@ -72,7 +73,7 @@ void CImageCopyCaptureSession::sendConstraints() { for (DRMFormat format : formats) { m_resource->sendShmFormat(NFormatUtils::drmToShm(format)); - auto modifiers = g_pHyprOpenGL->getDRMFormatModifiers(format); + auto modifiers = g_pHyprRenderer->getDRMFormatModifiers(format); wl_array modsArr; wl_array_init(&modsArr); @@ -287,7 +288,7 @@ void CImageCopyCaptureCursorSession::sendConstraints() { m_sessionResource->sendShmFormat(NFormatUtils::drmToShm(format)); - auto modifiers = g_pHyprOpenGL->getDRMFormatModifiers(format); + auto modifiers = g_pHyprRenderer->getDRMFormatModifiers(format); wl_array modsArr; wl_array_init(&modsArr); -- cgit v1.2.3