Merge pull request #5650 from raven02/patch-29

Avoid caching when HW T&L with morph enabled.
This commit is contained in:
Henrik Rydgård 2014-03-14 14:24:46 +01:00
commit bbacfdd899

View File

@ -539,6 +539,10 @@ void TransformDrawEngine::DoFlush() {
if (g_Config.bSoftwareSkinning && (lastVType_ & GE_VTYPE_WEIGHT_MASK))
useCache = false;
// Also avoid caching when HW T&L with morph enabled.
if (g_Config.bHardwareTransform && !(lastVType_ & GE_VTYPE_MORPHCOUNT_MASK))
useCache = false;
if (useCache) {
u32 id = ComputeFastDCID();
auto iter = vai_.find(id);