summary refs log tree commit diff
path: root/src/GFX
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-05 11:29:12 +0100
committerMel <einebeere@gmail.com>2024-02-05 11:29:12 +0100
commitbcb89e0554e43d37daf74b3ef6e466b6630752cd (patch)
tree4bd01a9180d85c51258647d8974dbdd1d7c660d1 /src/GFX
parente2e52b7069d2eeed18e935616d72af5774b14a97 (diff)
downloadmeowcraft-bcb89e0554e43d37daf74b3ef6e466b6630752cd.tar.zst
meowcraft-bcb89e0554e43d37daf74b3ef6e466b6630752cd.zip
Custom debuggable ASSERT macro
Diffstat (limited to 'src/GFX')
-rw-r--r--src/GFX/Mesh.cpp4
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);