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
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-16 14:14:13 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-16 14:14:23 +0300
commit86c828d9fdf6df9f392f70d8ed1f0e10ce10e098 (patch)
treef194c39053929d29f9e81d636167297272f128fd /source
parent2fa593a6f7d0dcf4a638180da1afd6d10afc3ac5 (diff)
Make sure disabling attribute arrays also resets the counter so we don't
do it twice.
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 56167d466f1..e622943597a 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -1364,6 +1364,7 @@ void GPU_buffer_unbind(void)
else
break;
}
+ attribData[0].index = -1;
/* not guaranteed we used VBOs but in that case it's just a no-op */
if (GLEW_ARB_vertex_buffer_object)