Add vao cache for static surfaces.
Remove support for draw range elements, multi draw arrays, world vao creation, surface merging.
This commit is contained in:
parent
127464ed19
commit
c65d2c2657
12 changed files with 413 additions and 730 deletions
|
@ -764,9 +764,6 @@ static qboolean R_LoadMD3(model_t * mod, int lod, void *buffer, int bufferSize,
|
|||
vaoSurf->numIndexes = surf->numIndexes;
|
||||
vaoSurf->numVerts = surf->numVerts;
|
||||
|
||||
vaoSurf->minIndex = 0;
|
||||
vaoSurf->maxIndex = surf->numVerts - 1;
|
||||
|
||||
vaoSurf->vao = R_CreateVao(va("staticMD3Mesh_VAO '%s'", surf->name), data, dataSize, (byte *)surf->indexes, surf->numIndexes * sizeof(*surf->indexes), VAO_USAGE_STATIC);
|
||||
|
||||
vaoSurf->vao->attribs[ATTR_INDEX_POSITION].enabled = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue