mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 05:15:51 +12:00
Fix warnings
This commit is contained in:
parent
9eb661c768
commit
4cda023c22
2 changed files with 6 additions and 3 deletions
|
@ -27,11 +27,14 @@ u8 PICAShader::getIndexedSource(u32 source, u32 index) {
|
|||
return source;
|
||||
|
||||
switch (index) {
|
||||
case 0: return u8(source); // No offset applied
|
||||
case 0: [[likely]] return u8(source); // No offset applied
|
||||
case 1: return u8(source + addrRegister.x());
|
||||
case 2: return u8(source + addrRegister.y());
|
||||
case 3: return u8(source + loopCounter);
|
||||
}
|
||||
|
||||
Helpers::panic("Reached unreachable path in PICAShader::getIndexedSource");
|
||||
return 0;
|
||||
}
|
||||
|
||||
PICAShader::vec4f PICAShader::getSource(u32 source) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue