diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-23 17:05:00 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-23 21:02:57 +0300 |
commit | d47e565598f41ad9571e7ce112caaf9f776c0647 (patch) | |
tree | 16eb2304aadb93c3e17b53911d10420694519b68 /source/blender/gpu/GPU_buffers.h | |
parent | b3ac7c07ff8cf6c40954af30ded8ab80e15a1921 (diff) |
Subsurf: Optimize edge drawing, now it uses VBOs.
Also the refactor exposed an error where we requested too much
memory from the video memory in general for all mesh types.
Now we are back to normal :)
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index fc8b3726b84..a50d63d89ec 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -124,6 +124,10 @@ typedef struct GPUDrawObject { unsigned int loose_edge_offset; unsigned int tot_loose_edge_drawn; unsigned int tot_edge_drawn; + + /* for subsurf, offset where drawing of interior edges starts */ + unsigned int interior_offset; + unsigned int totinterior; } GPUDrawObject; /* currently unused */ |