mirror of https://github.com/AxioDL/metaforce.git
CModelBoo: Fix VBO stride check
This commit is contained in:
parent
aea8b4474b
commit
b600c99bed
|
@ -196,7 +196,7 @@ hsh::vertex_buffer_typeless CBooModel::ModelInstance::GetBooVBO(const CBooModel&
|
|||
const CModel& parent = *model.m_model;
|
||||
auto CreateVBO = [this, &parent]<uint32_t NUVs, uint32_t NWeights>() {
|
||||
using VertData = CModelShaders::VertData<0, NUVs, NWeights>;
|
||||
assert(sizeof(VertData) == parent.GetHMDLMeta().vertStride && "Vert data stride mismatch");
|
||||
assert(sizeof(VertData) != parent.GetHMDLMeta().vertStride && "Vert data stride mismatch");
|
||||
m_dynamicVbo = hsh::create_dynamic_vertex_buffer<VertData>(parent.GetHMDLMeta().vertCount);
|
||||
};
|
||||
#define VERT_DATA(uvs) \
|
||||
|
|
Loading…
Reference in New Issue