Vulkan: Use GetBaseFormat in TextureFormatIsSimilar

This commit is contained in:
DrChat 2017-08-13 19:08:07 -05:00
parent 58bfc1e535
commit 3d0cbe50b9
1 changed files with 3 additions and 1 deletions

View File

@ -687,8 +687,10 @@ bool TextureFormatIsSimilar(TextureFormat left, TextureFormat right) {
(left == TextureFormat::y && right == TextureFormat::x)) { \
return true; \
}
if (left == right) return true;
COMPARE_FORMAT(k_2_10_10_10, k_2_10_10_10_AS_16_16_16_16);
if (GetBaseFormat(left) == GetBaseFormat(right)) return true;
return false;
#undef COMPARE_FORMAT
}