Renderer GL: Add UB checks

This commit is contained in:
wheremyfoodat 2024-07-23 04:11:12 +03:00
parent fc397b2b58
commit e4d4a35674
2 changed files with 13 additions and 3 deletions

View file

@ -167,7 +167,8 @@ class GPU {
u32 index = paddr - PhysicalAddrs::VRAM;
return (T*)&vram[index];
} else [[unlikely]] {
Helpers::panic("[GPU] Tried to access unknown physical address: %08X", paddr);
Helpers::warn("[GPU] Tried to access unknown physical address: %08X", paddr);
return nullptr;
}
}