From b600c99bedd4f09efc058038a2f94cca90a30b49 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 7 Oct 2020 20:18:39 -0400 Subject: [PATCH] CModelBoo: Fix VBO stride check --- Runtime/Graphics/CModelBoo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Graphics/CModelBoo.cpp b/Runtime/Graphics/CModelBoo.cpp index 7878b4deb..54e086ef3 100644 --- a/Runtime/Graphics/CModelBoo.cpp +++ b/Runtime/Graphics/CModelBoo.cpp @@ -196,7 +196,7 @@ hsh::vertex_buffer_typeless CBooModel::ModelInstance::GetBooVBO(const CBooModel& const CModel& parent = *model.m_model; auto CreateVBO = [this, &parent]() { 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(parent.GetHMDLMeta().vertCount); }; #define VERT_DATA(uvs) \