From 8f137322da4220aeb3863ff79724644e7e5152a0 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 14 May 2026 23:30:06 +0200 Subject: Remove usage of PathFindExtensionA and shlwapi include Fix input bug due to a switch to main fiber in message handler --- src/gltf.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/gltf.cpp') diff --git a/src/gltf.cpp b/src/gltf.cpp index 2ddf16a..3e0af7d 100644 --- a/src/gltf.cpp +++ b/src/gltf.cpp @@ -166,12 +166,11 @@ static void load_textures(char* path, std::vector>& textu vkdevice& device = vkdevice::get(); constexpr auto buffers_count = 2U; - auto total_size = images.size() * 4096U * 4096 * sizeof(uint32_t); + size_t total_size = images.size() * 4096U * 4096 * sizeof(uint32_t); // TODO: Fix nasty stuff going on - // Crash on buffer destruction - // Load wrong images - // auto buffer_size = total_size / 32U; - auto buffer_size = total_size / 2U; + // Crash on buffer destruction and load wrong images + // size_t buffer_size = total_size / 32U; + size_t buffer_size = total_size / 4U; handle staging_buffers_handle[buffers_count] = { device.create_buffer({ @@ -289,23 +288,18 @@ static void load_materials(std::vector& materials, std::vector