mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 02:09:05 +02:00
Merge pull request #5853 from sum2012/soft-gpu
Avoid unknown get pointer in Rasterizer.cpp
This commit is contained in:
commit
f2bf8df3cd
1 file changed
+4
-1
@@ -1193,7 +1193,10 @@ void DrawTriangleSlice(
|
||||
for (int i = 0; i <= maxTexLevel; i++) {
|
||||
u32 texaddr = gstate.getTextureAddress(i);
|
||||
texbufwidthbits[i] = GetTextureBufw(i, texaddr, texfmt) * 8;
|
||||
texptr[i] = Memory::GetPointer(texaddr);
|
||||
if (Memory::IsValidAddress(texaddr))
|
||||
texptr[i] = Memory::GetPointer(texaddr);
|
||||
else
|
||||
texptr[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user