From 86c828d9fdf6df9f392f70d8ed1f0e10ce10e098 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 16 Mar 2015 12:14:13 +0100 Subject: [PATCH] Make sure disabling attribute arrays also resets the counter so we don't do it twice. --- source/blender/gpu/intern/gpu_buffers.c | 1 + 1 file changed, 1 insertion(+) 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)