diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-10-20 04:45:44 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-10-20 04:45:44 +0400 |
commit | 3a52a876b6a8909bca8660f9cde7d65a84c631f5 (patch) | |
tree | bcb4a36f1e9b13a007e3c30455c1fc9e5ddbbfcb /source/blender/gpu | |
parent | 2256c8e25f597b5499e8bf64dd0fe74c1ea31864 (diff) |
Fix for drawing meshes with VBOs disabled in sculpt mode
* This is another fix for r51118. Was drawing flat-shaded GPU buffers
with VBOs even when VBOs were disabled in the preferences.
Diffstat (limited to 'source/blender/gpu')
-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 c0b4987c3fc..2986ce85c88 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -1562,7 +1562,7 @@ GPU_Buffers *GPU_build_mesh_buffers(int (*face_vert_indices)[4], glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0); } - if (buffers->index_buf || !buffers->smooth) + if (gpu_vbo_enabled() && (buffers->index_buf || !buffers->smooth)) glGenBuffersARB(1, &buffers->vert_buf); buffers->tot_tri = tottri; |