CModelBoo: Fix VBO stride check

This commit is contained in:
Luke Street 2020-10-07 20:18:39 -04:00
parent aea8b4474b
commit b600c99bed
1 changed files with 1 additions and 1 deletions

View File

@ -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) \