Skip to content

Commit

Permalink
Vulkan: Correct check alpha.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed May 1, 2016
1 parent 056e25e commit 99e1875
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GPU/Vulkan/TextureCacheVulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1634,13 +1634,13 @@ void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePt

// We always end up at 8888. Other parts assume this.
assert(dstFmt == VULKAN_8888_FORMAT);
decPitch = w * sizeof(u32);
rowBytes = w * sizeof(u32);
bpp = sizeof(u32);
decPitch = w * bpp;
rowBytes = w * bpp;
}

if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
// TODO: bufw may be wrong.
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, bufw, w, h);
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h);
entry.SetAlphaStatus(alphaStatus, level);
} else {
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);
Expand Down

0 comments on commit 99e1875

Please sign in to comment.