Use fixed-width pixel data in stitched textures

This commit is contained in:
notmatthewbeshay 2026-03-11 07:33:23 +11:00
parent 6185c58203
commit e18941ced7

View file

@ -178,7 +178,7 @@ void PreStitchedTextureMap::stitch()
#ifdef __PSVITA__
// AP - alpha cut out is expensive on vita so we mark which icons actually require it
DWORD *data = (DWORD*) this->getStitchedTexture()->getData()->getBuffer();
std::uint32_t *data = reinterpret_cast<std::uint32_t*>(this->getStitchedTexture()->getData()->getBuffer());
int Width = this->getStitchedTexture()->getWidth();
int Height = this->getStitchedTexture()->getHeight();
for(AUTO_VAR(it, texturesByName.begin()); it != texturesByName.end(); ++it)