From bcb89e0554e43d37daf74b3ef6e466b6630752cd Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 5 Feb 2024 11:29:12 +0100 Subject: Custom debuggable ASSERT macro --- src/GFX/Mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GFX') diff --git a/src/GFX/Mesh.cpp b/src/GFX/Mesh.cpp index c8bda7b..5a3e8bf 100644 --- a/src/GFX/Mesh.cpp +++ b/src/GFX/Mesh.cpp @@ -1,5 +1,5 @@ #include "Mesh.hpp" -#include +#include "../Common/Assert.hpp" namespace MC::GFX { @@ -65,7 +65,7 @@ void Mesh::store_indices(const U32* indices, USize indices_size) { } void Mesh::store_in_attribute_list(U32 attribute, Int attribute_size, Int type_size, const void* data, long data_size) { - assert(type_size == sizeof(F32)); + ASSERT(type_size == sizeof(F32), "Only F32 is supported for now"); GLuint vbo; glGenBuffers(1, &vbo); -- cgit 1.4.1