diff options
| author | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2011-02-08 14:51:53 +0000 |
|---|---|---|
| committer | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2011-02-08 14:51:53 +0000 |
| commit | 1f1c9132a6bd69a94e6f4c280bd2e4cddb3dbf37 (patch) | |
| tree | 949cb08274d79a6ef1b50f099cf25615b28860cd /Source/Core/VideoCommon | |
| parent | b567e8fb31651800bc48d60e759b3afacb480c39 (diff) | |
revert some some of the soren changes to make dolphin compile in vs2008 again until sw plugin is completely fixed.
some correction to dlist caching
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7117 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/DLCache.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/DLCache.cpp b/Source/Core/VideoCommon/Src/DLCache.cpp index 9f8df67951..d780045fb2 100644 --- a/Source/Core/VideoCommon/Src/DLCache.cpp +++ b/Source/Core/VideoCommon/Src/DLCache.cpp @@ -65,7 +65,7 @@ struct ReferencedDataRegion NextRegion(NULL), size(0), MustClean(0), - ReferencedArray(-1), + ReferencedArray(0xFFFFFFFF), ReferencedArrayStride(0) {} u64 hash; @@ -184,7 +184,10 @@ struct CachedDisplayList { if(Current->hash) { - if(cached_arraybases[Current->ReferencedArray] != Current->start_address || arraystrides[Current->ReferencedArray] != Current->ReferencedArrayStride) + //this test is here to grant that the referenced arrays by the dlist dont change + // in the current implementation is not necesary as the id of the dlist is calculated based on the arrays it refers + // but i let this test for extra safety + if(Current->ReferencedArray != 0xFFFFFFFF && (cached_arraybases[Current->ReferencedArray] != Current->start_address || arraystrides[Current->ReferencedArray] != Current->ReferencedArrayStride)) { return false; } |
