From 809b9b9e78c69c53b62dfc7d5de5c20ff8fe0626 Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Sun, 5 Apr 2026 20:37:07 +0200 Subject: egl: move over to use hyprgraphics (#12988) use the hyprgraphics helpers instead. --- src/protocols/core/Shm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/protocols/core/Shm.cpp') diff --git a/src/protocols/core/Shm.cpp b/src/protocols/core/Shm.cpp index c6f01b50..660458ab 100644 --- a/src/protocols/core/Shm.cpp +++ b/src/protocols/core/Shm.cpp @@ -7,6 +7,9 @@ #include "../types/WLBuffer.hpp" #include "../../helpers/Format.hpp" #include "../../render/Renderer.hpp" +#include + +using namespace Hyprgraphics::Egl; using namespace Hyprutils::OS; CWLSHMBuffer::CWLSHMBuffer(WP pool_, uint32_t id, int32_t offset_, const Vector2D& size_, int32_t stride_, uint32_t fmt_) { @@ -21,7 +24,7 @@ CWLSHMBuffer::CWLSHMBuffer(WP pool_, uint32_t id, int32_t of m_stride = stride_; m_fmt = fmt_; m_offset = offset_; - m_opaque = NFormatUtils::isFormatOpaque(NFormatUtils::shmToDRM(fmt_)); + m_opaque = isDrmFormatOpaque(NFormatUtils::shmToDRM(fmt_)); m_resource = CWLBufferResource::create(makeShared(pool_->m_resource->client(), 1, id)); -- cgit v1.2.3