aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-11-11 17:55:18 +0000
committerMihai Fufezan <[email protected]>2024-11-14 12:59:23 +0200
commitb08bab01b1a867b42562f56a260561af556b5a65 (patch)
treeba51c699e150ec0083c2857dc4119447c13fc873
parent928e7dd7120440a10f664a49fb2254ab0d66f69f (diff)
downloadHyprland-b08bab01b1a867b42562f56a260561af556b5a65.tar.gz
Hyprland-b08bab01b1a867b42562f56a260561af556b5a65.zip
f
-rw-r--r--src/managers/PointerManager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp
index e6bebdfd..d996b828 100644
--- a/src/managers/PointerManager.cpp
+++ b/src/managers/PointerManager.cpp
@@ -460,8 +460,10 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
if (shmBuffer.data())
texData = shmBuffer;
- else
- texData = {texture->m_vSize.x * 4 * texture->m_vSize.y, 0};
+ else {
+ texData.resize(texture->m_vSize.x * 4 * texture->m_vSize.y);
+ memset(texData.data(), 0x00, texData.size());
+ }
if (flipRB) {
for (size_t i = 0; i < shmBuffer.size(); i += 4) {