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 :)
This commit is contained in:
2015-07-23 16:05:00 +02:00
parent b3ac7c07ff
commit d47e565598
3 changed files with 241 additions and 90 deletions

View File

@@ -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 */