diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 16:17:23 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 16:17:23 +1000 |
commit | 7ec62c58e9560fc961ec3522490e40ad1d259c72 (patch) | |
tree | e7d6c9bb9efc9871fe2a4bc7e5f51a02f7d901ef /src/new_render/render.c | |
parent | c43bee3ec89e0863b4195ca9298a007d3526a6d9 (diff) |
wip skybox. make geometry owned and copied onto Mesh
Diffstat (limited to 'src/new_render/render.c')
-rw-r--r-- | src/new_render/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_render/render.c b/src/new_render/render.c index d98db4f..2a0ea9d 100644 --- a/src/new_render/render.c +++ b/src/new_render/render.c @@ -188,7 +188,7 @@ Mesh Mesh_Create(Geometry* geometry, bool free_on_upload) { GPU_BufferCreate(index_bytes, BUFFER_INDEX, BUFFER_FLAG_GPU, geometry->indices->data); m.is_uploaded = true; - m.geometry = geometry; + m.geometry = *geometry; // clone geometry data and store on Mesh struct if (free_on_upload) { Geometry_Destroy(geometry); } |