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:
authorClément Foucault <foucault.clem@gmail.com>2017-02-09 20:33:12 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-02-11 22:36:20 +0300
commit1976fd7af18bd784fadccc1ba4abbf7be878689d (patch)
tree4ae291f69c92bd8f5195db2bc37fd504d602752b /source/blender/gpu/gawain
parent08c1afb088743a57eb2e9475a6e531ae27b8b4ac (diff)
Clay Engine: Fix instance attrib.
Diffstat (limited to 'source/blender/gpu/gawain')
-rw-r--r--source/blender/gpu/gawain/batch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/gawain/batch.c b/source/blender/gpu/gawain/batch.c
index 6beddaca6c2..55ccd94a555 100644
--- a/source/blender/gpu/gawain/batch.c
+++ b/source/blender/gpu/gawain/batch.c
@@ -314,9 +314,9 @@ void Batch_draw_stupid_instanced(Batch* batch, unsigned int instance_vbo, int in
glVertexAttribPointer(loc + atr_ofs, (size > 4) ? 4 : size, GL_FLOAT, GL_FALSE,
sizeof(float) * attrib_stride, (GLvoid*)(sizeof(float) * ptr_ofs));
glVertexAttribDivisor(loc + atr_ofs, 1);
- size -= 4;
atr_ofs++;
ptr_ofs += (size > 4) ? 4 : size;
+ size -= 4;
}
}
glBindBuffer(GL_ARRAY_BUFFER, 0);