diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-25 12:41:47 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-25 12:41:47 -0500 |
| commit | 4afb85ef33c39fbda60a92620990e4ae1f2bd763 (patch) | |
| tree | ea18e9058d9391953c4567bfa09ede5b50a6b6e3 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | aa92797f930caa1ef3104b3f333f9e15d6e6e570 (diff) | |
| parent | 6f3e20ac4256460ab726a4ed693718f51883fcc9 (diff) | |
Merge pull request #1584 from degasus/master
OGL: also show driver warnings on release builds
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index c6b57c81ca..ec7854bace 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -376,13 +376,18 @@ static void BPWritten(const BPCmd& bp) if (!g_bSkipCurrentFrame) { u8 offset = bp.address & 2; - - BoundingBox::coords[offset] = bp.newvalue & 0x3ff; - BoundingBox::coords[offset + 1] = bp.newvalue >> 10; BoundingBox::active = true; - g_renderer->BBoxWrite(offset, bp.newvalue & 0x3ff); - g_renderer->BBoxWrite(offset + 1, bp.newvalue >> 10); + if (g_ActiveConfig.backend_info.bSupportsBBox) + { + 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: |
