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
This commit is contained in:
parent
b567e8fb31
commit
1f1c9132a6
|
@ -23,8 +23,9 @@
|
|||
#include "../../../Plugins/Plugin_VideoDX11/Src/VideoBackend.h"
|
||||
#endif
|
||||
#include "../../../Plugins/Plugin_VideoOGL/Src/VideoBackend.h"
|
||||
#ifndef _WIN32
|
||||
#include "../../../Plugins/Plugin_VideoSoftware/Src/VideoBackend.h"
|
||||
|
||||
#endif
|
||||
std::vector<VideoBackend*> g_available_video_backends;
|
||||
VideoBackend* g_video_backend = NULL;
|
||||
|
||||
|
@ -36,9 +37,11 @@ void VideoBackend::PopulateList()
|
|||
g_available_video_backends.push_back(new DX11::VideoBackend);
|
||||
#endif
|
||||
g_available_video_backends.push_back(new OGL::VideoBackend);
|
||||
#ifndef _WIN32
|
||||
g_available_video_backends.push_back(new SW::VideoBackend);
|
||||
|
||||
#endif
|
||||
g_video_backend = g_available_video_backends.front();
|
||||
|
||||
}
|
||||
|
||||
void VideoBackend::ClearList()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue