diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-03-16 14:14:13 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-03-16 14:14:23 +0300 |
commit | 86c828d9fdf6df9f392f70d8ed1f0e10ce10e098 (patch) | |
tree | f194c39053929d29f9e81d636167297272f128fd /source/blender/gpu/intern | |
parent | 2fa593a6f7d0dcf4a638180da1afd6d10afc3ac5 (diff) |
Make sure disabling attribute arrays also resets the counter so we don't
do it twice.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 1 |
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) |