diff options
Diffstat (limited to 'source/blender/blenkernel/intern/subsurf_ccg.c')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index f6337d6ed60..a3e4b47fd15 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -4758,11 +4758,15 @@ struct DerivedMesh *subsurf_make_derived_from_derived( * this is to be investiated still to be sure we don't have * regressions here. */ - prevSS = smd->mCache; -#else - ccgSubSurf_free(smd->mCache); - smd->mCache = NULL; + if (use_gpu_backend) { + prevSS = smd->mCache; + } + else #endif + { + ccgSubSurf_free(smd->mCache); + smd->mCache = NULL; + } } |