mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Add a common TextureAlpha enum, replacing CheckAlphaResult and ReplacedTextureAlpha.
This commit is contained in:
1 parent
fdcf923c75
commit
ec6c7b08f5
12 files changed
+73
-73
No files matched your search
@@ -941,7 +941,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
|
||||
}
|
||||
|
||||
if (plan.doReplace) {
|
||||
entry->SetAlphaStatus(TexCacheEntry::TexStatus(plan.replaced->AlphaStatus()));
|
||||
entry->SetAlphaStatus(plan.replaced->AlphaStatus());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1015,7 +1015,7 @@ void TextureCacheVulkan::LoadVulkanTextureLevel(TexCacheEntry &entry, uint8_t *w
|
||||
decPitch = rowPitch;
|
||||
}
|
||||
|
||||
CheckAlphaResult alphaResult = DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, texDecFlags);
|
||||
TextureAlpha alphaResult = DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, texDecFlags);
|
||||
entry.SetAlphaStatus(alphaResult, level);
|
||||
|
||||
if (scaleFactor > 1) {
|
||||
|
||||
Reference in new issue
Block a user