From b7c2511e588f1da63413a38a624fd3e6bb8cf54d Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 8 Sep 2022 00:35:41 +0200 Subject: First attempt at uploading textures --- src/gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gltf.cpp') diff --git a/src/gltf.cpp b/src/gltf.cpp index 59094d9..882a64b 100644 --- a/src/gltf.cpp +++ b/src/gltf.cpp @@ -145,7 +145,7 @@ void gltf::load_textures(const std::filesystem::path &path) { auto *texture = vkrenderer::create_2d_texture(static_cast(image.x), static_cast(image.y), VK_FORMAT_R8G8B8A8_UNORM, sampler); - texture->write(image.data); + texture->update(image.data); stbi_image_free(image.data); -- cgit v1.3