diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-03 17:44:46 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-03 17:44:46 +0300 |
commit | e5f7b0f330c09d6944969a0cc1e496ca112f0711 (patch) | |
tree | 94302281fda57fea1121ae39ca9b33dc471aa838 /source/blender/blenkernel/intern/CCGSubSurf_intern.h | |
parent | 4a0f3bece31be4997dd19c8ee8faa5ae6a1914e3 (diff) |
OpenSubdiv: Avoid crashes when GPU subsurf is tried to be used on CPU
The issue was caused by CCG code being confused by number of geometry returned
by utility functions in the case of the skipped grids.
Made it so that code is always only working with CCG data and handled drawing
code in a bit special way now.
This solves such crashes as i.e. snapping.
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf_intern.h')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf_intern.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_intern.h b/source/blender/blenkernel/intern/CCGSubSurf_intern.h index d80bdcdb7fc..95ea91461f8 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf_intern.h +++ b/source/blender/blenkernel/intern/CCGSubSurf_intern.h @@ -303,10 +303,6 @@ void ccgSubSurf__sync_legacy(CCGSubSurf *ss); void ccgSubSurf__sync_opensubdiv(CCGSubSurf *ss); -int ccgSubSurf__getNumOsdBaseVerts(const CCGSubSurf *ss); -int ccgSubSurf__getNumOsdBaseEdges(const CCGSubSurf *ss); -int ccgSubSurf__getNumOsdBaseFaces(const CCGSubSurf *ss); - /* * CCGSubSurf_opensubdiv_converter.c * */ struct OpenSubdiv_Converter; |