[Bf-blender-cvs] [337ce03] blender-v2.74-release: Make sure disabling attribute arrays also resets the counter so we don't do it twice.
Antony Riakiotakis
noreply at git.blender.org
Tue Mar 24 15:59:15 CET 2015
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)
More information about the Bf-blender-cvs
mailing list