Meshes with multiple batches handled

This commit is contained in:
surkeh
2018-04-13 17:22:07 -07:00
parent 4df1024a55
commit ad32d3d10a
3 changed files with 8 additions and 8 deletions

View File

@@ -69,13 +69,12 @@ bool getmeshheader(struct MeshHeader **hs,
}
bool getmeshbatch(struct Batch *b,
struct MeshHeader *h,
unsigned int offset,
const char * const filedata) {
bool done = false;
if (b == NULL || h == NULL || filedata == NULL) {
if (b == NULL || filedata == NULL) {
return done;
}
unsigned int offset = h -> offsetBatches;
struct BatchData *d1 = NULL;
struct VertexData d2;
d1 = (struct BatchData*) (filedata + offset);