diff options
| author | degasus <wickmarkus@web.de> | 2015-05-23 16:05:21 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-05-25 09:33:34 +0200 |
| commit | 029912681e1f6a17ad68f8593c78d514b863724c (patch) | |
| tree | f11b82c1ca0fc94ea9359c88378374c38ba5f592 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 6b2a1e57e2482efb46a91401fa22aaf5ef779974 (diff) | |
VideoCommon: return 0 if bbox is disabled
Through just returning the last written value sounds better, this crashes Paper Mario.
In my opinion, gfx issues are fine on older GPUs, but crashes should not happen.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 29913559c6..7148b2a0cc 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -384,11 +384,6 @@ static void BPWritten(const BPCmd& bp) g_renderer->BBoxWrite(offset, bp.newvalue & 0x3ff); g_renderer->BBoxWrite(offset + 1, bp.newvalue >> 10); } - else - { - BoundingBox::coords[offset] = bp.newvalue & 0x3ff; - BoundingBox::coords[offset + 1] = bp.newvalue >> 10; - } } return; case BPMEM_TEXINVALIDATE: |
