This commit is contained in:
Vaxry 2024-11-11 17:55:18 +00:00 committed by Mihai Fufezan
parent 928e7dd712
commit b08bab01b1
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg

View file

@ -460,8 +460,10 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager
if (shmBuffer.data()) if (shmBuffer.data())
texData = shmBuffer; texData = shmBuffer;
else else {
texData = {texture->m_vSize.x * 4 * texture->m_vSize.y, 0}; texData.resize(texture->m_vSize.x * 4 * texture->m_vSize.y);
memset(texData.data(), 0x00, texData.size());
}
if (flipRB) { if (flipRB) {
for (size_t i = 0; i < shmBuffer.size(); i += 4) { for (size_t i = 0; i < shmBuffer.size(); i += 4) {