[Bf-blender-cvs] [e994405] opensubdiv-modifier: OpenSubdiv: Minor cleanup

Sergey Sharybin noreply at git.blender.org
Fri Jul 17 11:59:43 CEST 2015


Commit: e994405a430ca1fc1b9f969f573db781a8c3ea6d
Author: Sergey Sharybin
Date:   Fri Jul 17 11:59:19 2015 +0200
Branches: opensubdiv-modifier
https://developer.blender.org/rBe994405a430ca1fc1b9f969f573db781a8c3ea6d

OpenSubdiv: Minor cleanup

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

M	intern/opensubdiv/opensubdiv_gpu_capi.cc

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

diff --git a/intern/opensubdiv/opensubdiv_gpu_capi.cc b/intern/opensubdiv/opensubdiv_gpu_capi.cc
index 12e0a67..8b3f144 100644
--- a/intern/opensubdiv/opensubdiv_gpu_capi.cc
+++ b/intern/opensubdiv/opensubdiv_gpu_capi.cc
@@ -607,11 +607,10 @@ static void draw_partition_patches_range(PartitionedGLMeshInterface *mesh,
 static void draw_all_patches(PartitionedGLMeshInterface *mesh,
                              GLuint program)
 {
-	OpenSubdiv::Osd::PatchArrayVector const & patches =
+	const OpenSubdiv::Osd::PatchArrayVector& patches =
 	        mesh->GetPatchTable()->GetPatchArrays();
-
 	for (int i = 0; i < (int)patches.size(); ++i) {
-		OpenSubdiv::Osd::PatchArray const &patch = patches[i];
+		const OpenSubdiv::Osd::PatchArray& patch = patches[i];
 		OpenSubdiv::Far::PatchDescriptor desc = patch.GetDescriptor();
 		OpenSubdiv::Far::PatchDescriptor::Type patchType = desc.GetType();




More information about the Bf-blender-cvs mailing list