diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-16 08:11:35 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-16 08:11:35 +0400 |
commit | 815beed922a4ffb68d2e35ee307775b4468045c8 (patch) | |
tree | d15caf8b7fe7fe5a2df55ffaa303b1cd23f201b3 /source | |
parent | eab24df9503bbb173a302f88a920e076d2d0368d (diff) |
Fix for multires VBO drawing in sculpt mode.
Forgot to use return value of function creating the index buffer.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 92b14409ce7..aeb2b13d15e 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -1606,7 +1606,7 @@ GPU_Buffers *GPU_build_grid_buffers(int *grid_indices, int totgrid, totquad= gpu_count_grid_quads(grid_hidden, grid_indices, totgrid, gridsize); if(totquad == fully_visible_totquad) { - gpu_get_grid_buffer(gridsize, &buffers->index_type, &buffers->tot_quad); + buffers->index_buf = gpu_get_grid_buffer(gridsize, &buffers->index_type, &buffers->tot_quad); buffers->has_hidden = 0; } else if(GLEW_ARB_vertex_buffer_object && !(U.gameflags & USER_DISABLE_VBO)) { |