diff options
| author | degasus <wickmarkus@web.de> | 2014-11-13 23:26:49 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2014-11-17 21:20:32 +0100 |
| commit | c211450b997effa6d91059fb0aaa564892297719 (patch) | |
| tree | fabbfdf698d6e499c53dec988d4b7ba2ef6556bc /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | dced84d4404b1f0346297c5941bfdf94cfdef4d5 (diff) | |
OGL: implement bounding box support with ssbo
This implemention tries to be as accurate as the old SW implemention, but it will remove the dependcy of our vertexloader on videosw.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 79c24778bd..c6b57c81ca 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -380,6 +380,9 @@ static void BPWritten(const BPCmd& bp) 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); } return; case BPMEM_TEXINVALIDATE: |
