[Bf-blender-cvs] [a64c648] opensubdiv-modifier: OpenSubdiv: Some optimizations for cases when mesh is not being displayed

Sergey Sharybin noreply at git.blender.org
Tue Jul 22 11:16:51 CEST 2014


Commit: a64c6486aa5f63e17ed41d70ccae7fd7570073b5
Author: Sergey Sharybin
Date:   Tue Jul 22 14:09:43 2014 +0600
Branches: opensubdiv-modifier
https://developer.blender.org/rBa64c6486aa5f63e17ed41d70ccae7fd7570073b5

OpenSubdiv: Some optimizations for cases when mesh is not being displayed

===================================================================

M	source/blender/blenkernel/intern/CCGSubSurf.c

===================================================================

diff --git a/source/blender/blenkernel/intern/CCGSubSurf.c b/source/blender/blenkernel/intern/CCGSubSurf.c
index f1d019b..b577326 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf.c
+++ b/source/blender/blenkernel/intern/CCGSubSurf.c
@@ -2387,8 +2387,6 @@ bool ccgSubSurf_prepareGLMesh(CCGSubSurf *ss, bool use_osd_glsl)
 		glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,
 		             openSubdiv_getOsdGLMeshPatchIndexBuffer(ss->osd_mesh));
 		glBindBuffer(GL_ARRAY_BUFFER, 0);
-
-		ss->osd_compute = U.opensubdiv_compute_type;
 	}
 	else if (ss->osd_coords_invalid) {
 		ccgSubSurf__updateGLMeshCoords(ss);
@@ -2520,6 +2518,8 @@ static bool opensubdiv_initEvaluator(CCGSubSurf *ss)
 		? OSD_SCHEME_BILINEAR
 		: OSD_SCHEME_CATMARK;
 
+	ss->osd_compute = U.opensubdiv_compute_type;
+
 	for (i = 0; i < ss->fMap->curSize; i++) {
 		CCGFace *face = (CCGFace *) ss->fMap->buckets[i];
 		for (; face; face = face->next) {




More information about the Bf-blender-cvs mailing list