aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/src/cuda/CuClothClone.cpp
diff options
context:
space:
mode:
authorMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
committerMarijn Tamis <[email protected]>2017-04-28 14:19:07 +0200
commitb350eb5f4d44e8448115796144375d79438d74ae (patch)
tree8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/src/cuda/CuClothClone.cpp
parentAdd visual samples. (diff)
downloadnvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz
nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/src/cuda/CuClothClone.cpp')
-rw-r--r--NvCloth/src/cuda/CuClothClone.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/NvCloth/src/cuda/CuClothClone.cpp b/NvCloth/src/cuda/CuClothClone.cpp
index df43c66..5dba4ec 100644
--- a/NvCloth/src/cuda/CuClothClone.cpp
+++ b/NvCloth/src/cuda/CuClothClone.cpp
@@ -56,11 +56,10 @@ Range<const uint32_t> getSelfCollisionIndices(const CuCloth& cloth)
return makeRange(cloth.mSelfCollisionIndicesHost);
}
-template <>
-Cloth* ClothImpl<CuCloth>::clone(Factory& factory) const
+Cloth* CuCloth::clone(Factory& factory) const
{
- if (&mCloth.mFactory == &factory)
- return NV_CLOTH_NEW(ClothImpl<CuCloth>)(factory, *this); // copy construct directly
+ if (&mFactory == &factory)
+ return NV_CLOTH_NEW(CuCloth)(mFactory, *this); // copy construct directly
switch(factory.getPlatform())
{
@@ -77,7 +76,7 @@ Cloth* ClothImpl<CuCloth>::clone(Factory& factory) const
Cloth* CuFactory::clone(const Cloth& cloth)
{
if (cloth.getFactory().getPlatform() == Platform::CPU)
- return convertCloth(*this, static_cast<const SwClothImpl&>(cloth));
+ return convertCloth(*this, static_cast<const SwCloth&>(cloth));
return cloth.clone(*this);
}