diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-30 10:11:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-30 10:11:59 +0400 |
commit | 0740e9e46406dc6d8690a149e43932a6963d0568 (patch) | |
tree | 35fbb29b254f5cf0ee6701d056cdb6d9cce241d0 /source/blender/gpu/intern/gpu_buffers.c | |
parent | 6711870cabdc8e180c38aff8b98d8373e673c7f6 (diff) |
fix [#30643] Crasher on entering edit mode with VBOs enabled
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 61d563a54e0..53555346caf 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -895,11 +895,11 @@ static int gpu_buffer_size_from_type(DerivedMesh *dm, GPUBufferType type) return sizeof(int)*2*dm->drawObject->totedge; case GPU_BUFFER_UVEDGE: /* each face gets 3 points, 3 edges per triangle, and - each edge has its own, non-shared coords, so each - tri corner needs minimum of 4 floats, quads used - less so here we can over allocate and assume all - tris. */ - return sizeof(float) * dm->drawObject->tot_triangle_point; + * each edge has its own, non-shared coords, so each + * tri corner needs minimum of 4 floats, quads used + * less so here we can over allocate and assume all + * tris. */ + return sizeof(float) * 4 * dm->drawObject->tot_triangle_point; default: return -1; } |