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:
parent
9ccc21dde3
commit
dcbbdc89ea
|
@ -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 *))
|
||||
|
||||
|
|
Loading…
Reference in New Issue