Cleanup: Fix missing-braces warning in draw manager

Good side effect of the change is that it makes it so that the
size of an array is more likely to be calculated at a compile time.

More ideally we'll be using bli::Array instead of the bare array,
but that is outside of the scope of this change.
This commit is contained in:
Sergey Sharybin 2022-06-07 10:31:28 +02:00
parent 9ccc21dde3
commit dcbbdc89ea
1 changed files with 2 additions and 2 deletions

View File

@ -196,8 +196,8 @@ struct MeshBatchList {
};
#define MBC_BATCH_LEN (sizeof(MeshBatchList) / sizeof(void *))
#define MBC_VBO_LEN (sizeof((MeshBufferList{0}).vbo) / sizeof(void *))
#define MBC_IBO_LEN (sizeof((MeshBufferList{0}).ibo) / sizeof(void *))
#define MBC_VBO_LEN (sizeof(MeshBufferList::vbo) / sizeof(void *))
#define MBC_IBO_LEN (sizeof(MeshBufferList::ibo) / sizeof(void *))
#define MBC_BATCH_INDEX(batch) (offsetof(MeshBatchList, batch) / sizeof(void *))