mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
Fix typo
This commit is contained in:
parent
74b06da6b2
commit
05cbdba965
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ static constexpr u32 signExtend3To32(u32 val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 Texture::getTexelETC(bool hasAlpha, u32 u, u32 v, u32 width, const void* data) {
|
u32 Texture::getTexelETC(bool hasAlpha, u32 u, u32 v, u32 width, const void* data) {
|
||||||
// Pixel offset of the 8x8 tile based on u, vand the width of the texture
|
// Pixel offset of the 8x8 tile based on u, v and the width of the texture
|
||||||
u32 offs = ((u & ~7) * 8) + ((v & ~7) * width);
|
u32 offs = ((u & ~7) * 8) + ((v & ~7) * width);
|
||||||
if (!hasAlpha)
|
if (!hasAlpha)
|
||||||
offs >>= 1;
|
offs >>= 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue