diff options
Diffstat (limited to 'src/GFX')
| -rw-r--r-- | src/GFX/Mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <cassert> +#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); |
