X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fvulkan%2Fmesh-vk.cc;fp=src%2Fvulkan%2Fmesh-vk.cc;h=2f0c5fb8db676d7b29b2fb3632117bd5ff26fae0;hp=89594f2e9c79cdfd01e8bbb09ba0f69c202284d0;hb=855c42d8e50fff743fd7b1be5e91cb0db18def77;hpb=ecb47604bb2b8ab3ac5a133e78ef6cb19a20d9cc diff --git a/src/vulkan/mesh-vk.cc b/src/vulkan/mesh-vk.cc index 89594f2..2f0c5fb 100644 --- a/src/vulkan/mesh-vk.cc +++ b/src/vulkan/mesh-vk.cc @@ -1,3 +1,4 @@ +#include #include "mesh-vk.h" MeshVK::MeshVK() {} @@ -29,6 +30,13 @@ MeshVK::~MeshVK() void MeshVK::update_vertex_data() { + if(vertices.empty()) { + printf("empty vertices!\n"); + return; + } + +// if(num_vertices != vertices.size()) { +// } } void MeshVK::draw() const @@ -37,4 +45,4 @@ void MeshVK::draw() const void MeshVK::draw_normals(float scale) const { -} \ No newline at end of file +}