Skip to content

Commit

Permalink
Merge pull request #5650 from raven02/patch-29
Browse files Browse the repository at this point in the history
Avoid caching when HW T&L with morph enabled.
  • Loading branch information
hrydgard committed Mar 14, 2014
2 parents e020024 + 557eae7 commit bbacfdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/GLES/TransformPipeline.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit bbacfdd

Please sign in to comment.