summaryrefslogtreecommitdiff
path: root/engine/src/ui/imgui.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-10 16:20:57 +0200
committerHampusM <hampus@hampusmat.com>2026-07-10 16:20:57 +0200
commitd68adea2554981da9dee593bf8a4b9455ca4d636 (patch)
tree8f931254aebabbfe7b858e6a5b0a5bbcdb1099bd /engine/src/ui/imgui.rs
parent9690e173f06d64d3b992b4217d1665d6cbf29394 (diff)
feat(engine): make CreateTexture rendering cmd optionally take texture value
Diffstat (limited to 'engine/src/ui/imgui.rs')
-rw-r--r--engine/src/ui/imgui.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/src/ui/imgui.rs b/engine/src/ui/imgui.rs
index 13896ff..7dea7fb 100644
--- a/engine/src/ui/imgui.rs
+++ b/engine/src/ui/imgui.rs
@@ -471,7 +471,10 @@ fn initialize_context(
render_passes.passes.push_back(RenderPass {
commands: vec![
RenderingCommand::MakeCurrent(window_surface_id),
- RenderingCommand::CreateTexture(font_texture_asset.clone()),
+ RenderingCommand::CreateTexture(
+ RenderingObjectId::Asset(font_texture_asset.id()),
+ AssetOrValue::Asset(font_texture_asset.clone()),
+ ),
RenderingCommand::CreateShaderProgram(
RenderingObjectId::Asset(shader_asset.id()),
shader_context