From 604dc587e9357a4f728834329ded417042dad8a9 Mon Sep 17 00:00:00 2001 From: skejeton Date: Tue, 5 Mar 2024 20:05:17 -0300 Subject: [PATCH] Fix pass action --- lib/miniaudio | 2 +- lib/umka | 2 +- main.um | 1 + src/image.c | 2 +- tests/imaget.um | 3 +-- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/miniaudio b/lib/miniaudio index 4a5b74b..b19cc09 160000 --- a/lib/miniaudio +++ b/lib/miniaudio @@ -1 +1 @@ -Subproject commit 4a5b74bef029b3592c54b6048650ee5f972c1a48 +Subproject commit b19cc09fd06b80f370ca4385d260df7e31925b50 diff --git a/lib/umka b/lib/umka index 3b1411d..55336c2 160000 --- a/lib/umka +++ b/lib/umka @@ -1 +1 @@ -Subproject commit 3b1411d812b038b8ef878e65cf958823b8eb3991 +Subproject commit 55336c28ebc4f91d6328a86f78a6f36117699d6b diff --git a/main.um b/main.um index 02b996a..e6948eb 100644 --- a/main.um +++ b/main.um @@ -96,6 +96,7 @@ fn init*() { "OPEN THE", "HOMEPAGE" } + window.onFrame.register(onFrame) } diff --git a/src/image.c b/src/image.c index 1853ee8..e1b63cc 100644 --- a/src/image.c +++ b/src/image.c @@ -326,7 +326,7 @@ th_image_set_as_render_target(th_render_target *t) sg_end_pass(); sg_begin_pass(&(sg_pass){ - .action = thg->pass_action, + .action = thg->offscreen_pass_action, .attachments = t->attachments, }); sg_apply_pipeline(thg->image_pip); diff --git a/tests/imaget.um b/tests/imaget.um index 5610714..f55cfbb 100644 --- a/tests/imaget.um +++ b/tests/imaget.um @@ -50,8 +50,7 @@ fn init*() { img3.flipv(true) target = image.createRenderTarget(th.Vf2{10, 10}, 0) - - window.onFrame.register(signal.Callback{ + window.onFrame.register({ p := th.Vf2{1, 1} canvas.drawText("drawOnQuad:", p, th.black, 2)