From 965ff9cc09401ae61c15aca0232d59fac17bfce3 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 27 Sep 2022 13:35:49 -0400 Subject: async chunk meshing --- engine/xe_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/xe_model.cpp') diff --git a/engine/xe_model.cpp b/engine/xe_model.cpp index fd97f44..ff0d630 100644 --- a/engine/xe_model.cpp +++ b/engine/xe_model.cpp @@ -20,10 +20,10 @@ Model::Model(Device &device, const Model::Builder &builder) : xeDevice{device} { Model::~Model() {} -std::unique_ptr Model::createModelFromFile(Device &device, const std::string &filepath) { +Model* Model::createModelFromFile(Device &device, const std::string &filepath) { Builder builder{}; builder.loadModel(filepath); - return std::make_unique(device, builder); + return new Model(device, builder); } void Model::createVertexBuffers(const std::vector &vertexData, uint32_t vertexSize) { -- cgit v1.2.3-freya