From 00a57046534247fb2289d37bd69743e484b1cdcb Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Tue, 24 Feb 2026 04:28:16 +0100 Subject: [PATCH] texture fix --- interfaces/Crafter.Asset-Texture.cppm | 1 + project.json | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/interfaces/Crafter.Asset-Texture.cppm b/interfaces/Crafter.Asset-Texture.cppm index 10f9033..1e2e75b 100644 --- a/interfaces/Crafter.Asset-Texture.cppm +++ b/interfaces/Crafter.Asset-Texture.cppm @@ -55,6 +55,7 @@ export namespace Crafter { tex.pixels.resize(tex.sizeX * tex.sizeY * tex.sizeZ); file.read(reinterpret_cast(tex.pixels.data()), tex.sizeX * tex.sizeY * tex.sizeZ * sizeof(T)); + return tex; } static TextureAsset LoadPNG(fs::path path) requires (std::same_as>) { diff --git a/project.json b/project.json index 3bc5df2..1cfcfe3 100644 --- a/project.json +++ b/project.json @@ -3,7 +3,7 @@ "configurations": [ { "name": "base", - "implementations": ["implementations/main"], + "implementations": [], "interfaces": ["interfaces/Crafter.Asset", "interfaces/Crafter.Asset-Texture", "interfaces/Crafter.Asset-Mesh"] }, { @@ -31,12 +31,21 @@ { "name": "executable", "extends": ["deps"], + "implementations": ["implementations/main"], "type": "executable" }, + { + "name": "executable-windows", + "extends": ["deps"], + "implementations": ["implementations/main"], + "type": "executable", + "target": "" + }, { "name": "executable-debug", "extends": ["deps-debug"], "type": "executable", + "implementations": ["implementations/main"], "debug": true }, {