aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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) {