diff options
Diffstat (limited to 'src/protocols')
| -rw-r--r-- | src/protocols/core/Compositor.cpp | 4 | ||||
| -rw-r--r-- | src/protocols/types/Buffer.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp index a3576c7e..e922c93e 100644 --- a/src/protocols/core/Compositor.cpp +++ b/src/protocols/core/Compositor.cpp @@ -440,7 +440,7 @@ void CWLSurfaceResource::commitPendingState(SSurfaceState& state) { if (current.texture) current.texture->m_eTransform = wlTransformToHyprutils(current.transform); - if (current.buffer && current.buffer->buffer) { + if (current.buffer) { const auto DAMAGE = accumulateCurrentBufferDamage(); current.buffer->buffer->update(DAMAGE); @@ -478,7 +478,7 @@ void CWLSurfaceResource::commitPendingState(SSurfaceState& state) { } void CWLSurfaceResource::updateCursorShm(CRegion damage) { - auto buf = current.buffer ? current.buffer->buffer : WP<IHLBuffer>{}; + auto buf = current.buffer ? current.buffer->buffer : SP<IHLBuffer>{}; if UNLIKELY (!buf) return; diff --git a/src/protocols/types/Buffer.hpp b/src/protocols/types/Buffer.hpp index 287f8a24..a0b4e9a8 100644 --- a/src/protocols/types/Buffer.hpp +++ b/src/protocols/types/Buffer.hpp @@ -45,7 +45,7 @@ class CHLBufferReference { CHLBufferReference(SP<IHLBuffer> buffer, SP<CWLSurfaceResource> surface); ~CHLBufferReference(); - WP<IHLBuffer> buffer; + SP<IHLBuffer> buffer; UP<CDRMSyncPointState> acquire; UP<CDRMSyncPointState> release; |
