2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #637 from Subv/etc

GPU/Textures: Fixed ETC texture decoding.
This commit is contained in:
Tony Wasserka 2015-03-07 22:26:55 +01:00
commit f29897ca6d

View file

@ -505,7 +505,7 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
} }
// Add modifier // Add modifier
unsigned table_index = (x < 2) ? table_index_2.Value() : table_index_1.Value(); unsigned table_index = (x < 2) ? table_index_1.Value() : table_index_2.Value();
static const auto etc1_modifier_table = std::array<std::array<u8, 2>, 8>{{ static const auto etc1_modifier_table = std::array<std::array<u8, 2>, 8>{{
{ 2, 8 }, { 5, 17 }, { 9, 29 }, { 13, 42 }, { 2, 8 }, { 5, 17 }, { 9, 29 }, { 13, 42 },