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/MesaDRM.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/protocols/MesaDRM.cpp') diff --git a/src/protocols/MesaDRM.cpp b/src/protocols/MesaDRM.cpp index 8a0b08b7..c73d98cc 100644 --- a/src/protocols/MesaDRM.cpp +++ b/src/protocols/MesaDRM.cpp @@ -2,6 +2,7 @@ #include #include #include "../Compositor.hpp" +#include "render/Renderer.hpp" #include "types/WLBuffer.hpp" #include "../render/OpenGL.hpp" @@ -61,7 +62,7 @@ CMesaDRMResource::CMesaDRMResource(SP resource_) : m_resource(resource_) uint64_t mod = DRM_FORMAT_MOD_INVALID; - auto fmts = g_pHyprOpenGL->getDRMFormats(); + auto fmts = g_pHyprRenderer->getDRMFormats(); for (auto const& f : fmts) { if (f.drmFormat != fmt) continue; @@ -101,7 +102,7 @@ CMesaDRMResource::CMesaDRMResource(SP resource_) : m_resource(resource_) m_resource->sendDevice(PROTO::mesaDRM->m_nodeName.c_str()); m_resource->sendCapabilities(WL_DRM_CAPABILITY_PRIME); - auto fmts = g_pHyprOpenGL->getDRMFormats(); + auto fmts = g_pHyprRenderer->getDRMFormats(); for (auto const& fmt : fmts) { m_resource->sendFormat(fmt.drmFormat); } -- cgit v1.2.3