[Bf-blender-cvs] [86c828d] master: Make sure disabling attribute arrays also resets the counter so we don't do it twice.

Antony Riakiotakis noreply at git.blender.org
Mon Mar 16 12:14:46 CET 2015


Commit: 86c828d9fdf6df9f392f70d8ed1f0e10ce10e098
Author: Antony Riakiotakis
Date:   Mon Mar 16 12:14:13 2015 +0100
Branches: master
https://developer.blender.org/rB86c828d9fdf6df9f392f70d8ed1f0e10ce10e098

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)




More information about the Bf-blender-cvs mailing list