Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/opensubdiv/opensubdiv_gpu_capi.cc')
-rw-r--r--intern/opensubdiv/opensubdiv_gpu_capi.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/opensubdiv/opensubdiv_gpu_capi.cc b/intern/opensubdiv/opensubdiv_gpu_capi.cc
index 84984e8bd7e..8329062c452 100644
--- a/intern/opensubdiv/opensubdiv_gpu_capi.cc
+++ b/intern/opensubdiv/opensubdiv_gpu_capi.cc
@@ -113,7 +113,7 @@ struct OpenSubdiv_GLMeshFVarData
}
void Create(const OpenSubdiv::Far::PatchTable *patch_table,
- int fvarWidth,
+ int fvar_width,
const float *fvar_src_data)
{
Release();
@@ -121,11 +121,11 @@ struct OpenSubdiv_GLMeshFVarData
// expand fvardata to per-patch array
std::vector<float> data;
- data.reserve(indices.size() * fvarWidth);
+ data.reserve(indices.size() * fvar_width);
for (int fvert = 0; fvert < (int)indices.size(); ++fvert) {
- int index = indices[fvert] * fvarWidth;
- for (int i = 0; i < fvarWidth; ++i) {
+ int index = indices[fvert] * fvar_width;
+ for (int i = 0; i < fvar_width; ++i) {
data.push_back(fvar_src_data[index++]);
}
}