Commit: 337ce035b6aa55a43383eb2a2512a0d3dd2ace86
Author: Antony Riakiotakis
Date:   Mon Mar 16 12:14:13 2015 +0100
Branches: blender-v2.74-release
https://developer.blender.org/rB337ce035b6aa55a43383eb2a2512a0d3dd2ace86

Make sure disabling attribute arrays also resets the counter so we don't
do it twice.

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

M       source/blender/gpu/intern/gpu_buffers.c

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

diff --git a/source/blender/gpu/intern/gpu_buffers.c 
b/source/blender/gpu/intern/gpu_buffers.c
index 56167d4..e622943 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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to