diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-20 13:12:28 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-20 13:12:28 +0300 |
commit | cb6fc9d14179cff9b0b2b38cf9a1fdec5a409298 (patch) | |
tree | 279804d58389d072b98a4803bdba9624d87186ca /source/blender/gpu/GPU_buffers.h | |
parent | 422ffd252ac5f73f27f3c91b75b5d20a0ed7d460 (diff) |
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.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |