From cb6fc9d14179cff9b0b2b38cf9a1fdec5a409298 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 20 Jul 2015 12:12:28 +0200 Subject: Use abstraction to unbind buffers, should avoid crashes in systems that don't support VBOs. Exposed by initialization error in GLEW, which should be fixed seperately. --- source/blender/gpu/GPU_buffers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 779521aa00c..fc8b3726b84 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -191,6 +191,7 @@ int GPU_attrib_element_size(GPUAttrib data[], int numdata); void GPU_interleaved_attrib_setup(GPUBuffer *buffer, GPUAttrib data[], int numdata, int element_size); void GPU_buffer_bind(GPUBuffer *buffer, GPUBindingType binding); +void GPU_buffer_unbind(GPUBuffer *buffer, GPUBindingType binding); /* can't lock more than one buffer at once */ void *GPU_buffer_lock(GPUBuffer *buffer, GPUBindingType binding); @@ -204,7 +205,7 @@ void GPU_color_switch(int mode); void GPU_buffer_draw_elements(GPUBuffer *elements, unsigned int mode, int start, int count); /* called after drawing */ -void GPU_buffer_unbind(void); +void GPU_buffers_unbind(void); /* only unbind interleaved data */ void GPU_interleaved_attrib_unbind(void); -- cgit v1.2.3