summaryrefslogtreecommitdiff
path: root/src/renderer/render.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-19 22:25:31 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-19 22:25:31 +1000
commitb6a4ac7b2d9d94a25ecdff007f87587512f5711d (patch)
tree588e2eb439be506415f1f807583687d94a27f911 /src/renderer/render.c
parentebee348781e68e61f97c31411512dc0aabab7acb (diff)
cube texture mapping working
Diffstat (limited to 'src/renderer/render.c')
-rw-r--r--src/renderer/render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/renderer/render.c b/src/renderer/render.c
index 9f9a97c..5723c9e 100644
--- a/src/renderer/render.c
+++ b/src/renderer/render.c
@@ -230,8 +230,9 @@ texture_data texture_data_load(const char* path, bool invert_y) {
}
texture_handle texture_data_upload(texture_data data, bool free_on_upload) {
- texture_handle handle = gpu_texture_create(data.description, data.image_data);
+ texture_handle handle = gpu_texture_create(data.description, true, data.image_data);
if (free_on_upload) {
+ TRACE("Freed stb_image data");
stbi_image_free(data.image_data);
}
return handle;