Browse Source

Fix Technique clone bug. (#2615)

sssooonnnggg 5 years ago
parent
commit
ce70a66f5a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Urho3D/Graphics/Technique.cpp

+ 1 - 0
Source/Urho3D/Graphics/Technique.cpp

@@ -387,6 +387,7 @@ SharedPtr<Technique> Technique::Clone(const String& cloneName) const
             continue;
             continue;
 
 
         Pass* newPass = ret->CreatePass(srcPass->GetName());
         Pass* newPass = ret->CreatePass(srcPass->GetName());
+        newPass->SetCullMode(srcPass->GetCullMode());
         newPass->SetBlendMode(srcPass->GetBlendMode());
         newPass->SetBlendMode(srcPass->GetBlendMode());
         newPass->SetDepthTestMode(srcPass->GetDepthTestMode());
         newPass->SetDepthTestMode(srcPass->GetDepthTestMode());
         newPass->SetLightingMode(srcPass->GetLightingMode());
         newPass->SetLightingMode(srcPass->GetLightingMode());