aboutsummaryrefslogtreecommitdiffstats
path: root/src/gltf.cpp
diff options
context:
space:
mode:
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);