Skip to content

Commit

Permalink
Fix pass action
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed Mar 5, 2024
1 parent 18e59bb commit 604dc58
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/umka
Submodule umka updated 1 files
+2 −2 doc/api.md
1 change: 1 addition & 0 deletions main.um
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ fn init*() {
"OPEN THE",
"HOMEPAGE" }


window.onFrame.register(onFrame)
}

2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions tests/imaget.um
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 604dc58

Please sign in to comment.