aboutsummaryrefslogtreecommitdiffstats
path: root/src/gltf.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-09-08 00:35:41 +0200
committerladevieq <ladevie.quentin@gmail.com>2022-09-08 00:36:24 +0200
commitb7c2511e588f1da63413a38a624fd3e6bb8cf54d (patch)
tree582a7090036d2bf6da1673b2675f93211172af79 /src/gltf.cpp
parent3ab5ce3d2eb2420db08a4f8fa2f0de1c0cc5a803 (diff)
First attempt at uploading textures
Diffstat (limited to 'src/gltf.cpp')
-rw-r--r--src/gltf.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint32_t>(image.x), static_cast<uint32_t>(image.y), VK_FORMAT_R8G8B8A8_UNORM, sampler);
- texture->write(image.data);
+ texture->update(image.data);
stbi_image_free(image.data);