mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-21 09:21:02 +00:00
GPU: Consider bbox failed with zero verts.
This seems to match behavior in tests.
This commit is contained in:
parent
1cf5e30bd6
commit
d6506b3d59
@ -1543,8 +1543,7 @@ void GPUCommon::Execute_BoundingBox(u32 op, u32 diff) {
|
||||
// Just resetting, nothing to check bounds for.
|
||||
const u32 data = op & 0x00FFFFFF;
|
||||
if (data == 0) {
|
||||
// TODO: Should this set the bboxResult? Let's set it true for now.
|
||||
currentList->bboxResult = true;
|
||||
currentList->bboxResult = false;
|
||||
return;
|
||||
}
|
||||
if (((data & 7) == 0) && data <= 64) { // Sanity check
|
||||
|
@ -96,10 +96,13 @@ void NullGPU::ExecuteOp(u32 op, u32 diff) {
|
||||
break;
|
||||
|
||||
case GE_CMD_BOUNDINGBOX:
|
||||
if (data != 0)
|
||||
if (data != 0) {
|
||||
DEBUG_LOG(G3D, "Unsupported bounding box: %06x", data);
|
||||
// bounding box test. Let's assume the box was within the drawing region.
|
||||
currentList->bboxResult = true;
|
||||
// Bounding box test. Let's assume the box was within the drawing region.
|
||||
currentList->bboxResult = true;
|
||||
} else {
|
||||
currentList->bboxResult = false;
|
||||
}
|
||||
break;
|
||||
|
||||
case GE_CMD_VERTEXTYPE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user