diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-05-13 06:32:37 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-05-13 06:32:37 +0300 |
commit | 6deaab207c25e7f8728696a3e57902c6a24abbbb (patch) | |
tree | 84d1e3db741f1c87c4aaaf0ca5fa9f734c7ef803 /source/blender/gpu/intern/gpu_buffers.c | |
parent | 1bcbad446e57de309e8747280bc6cad93187622c (diff) |
remove old PBVH VertexBufferFormat struct
Follow-up to 0722e41f9ea450be014d667417ff903510be2770 which removed all uses of this struct. Gawain VertexFormat auto aligns attributes as described in @nicholasbishop's performance note.
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 81466d156ee..b04cd580e6c 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -949,19 +949,6 @@ void GPU_buffer_draw_elements(GPUBuffer *UNUSED(elements), unsigned int mode, in /* XXX: the rest of the code in this file is used for optimized PBVH * drawing and doesn't interact at all with the buffer code above */ -/* Convenience struct for building the VBO. */ -typedef struct { - float co[3]; - short no[3]; - - /* inserting this to align the 'color' field to a four-byte - * boundary; drastically increases viewport performance on my - * drivers (Gallium/Radeon) --nicholasbishop */ - char pad[2]; - - unsigned char color[3]; -} VertexBufferFormat; - struct GPU_PBVH_Buffers { ElementList *index_buf, *index_buf_fast; VertexBuffer *vert_buf; |