From 65e6616e5f8088d161a388e3f3639f4727ad5be1 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Wed, 19 Aug 2020 17:39:05 -0400 Subject: [PATCH] Remove unused option to configure textures through an optional json file --- engine/asset/src/asset.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/engine/asset/src/asset.cpp b/engine/asset/src/asset.cpp index 62747d6..2128756 100644 --- a/engine/asset/src/asset.cpp +++ b/engine/asset/src/asset.cpp @@ -195,18 +195,8 @@ std::unique_ptr load_texture(const file::Path path) { return nullptr; } - bool should_generate_mipmaps = true; - - auto texture_info_path = path; - texture_info_path.replace_extension(".json"); - - auto json_file = file::open(texture_info_path); - if(json_file != std::nullopt) { - nlohmann::json j; - json_file->read_as_stream() >> j; - - should_generate_mipmaps = j["generate_mipmaps"]; - } + // TODO: expose somehow?? + const bool should_generate_mipmaps = true; file->read_all();