summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 11:33:28 +1100
committerquou <quou@disroot.org>2024-12-27 11:33:28 +1100
commitedc84213fadc9bbd30030a57600550bde562b24e (patch)
tree7a2aa3869a1e00f8e8841ae60ed8fc186a3e6df9 /c2.cpp
parent7fa078995b3ed62925788ce2460441bc3d373392 (diff)
allow renderpasses to specify a clear mode and pipelines to specify their viewport and scissor
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c2.cpp b/c2.cpp
index 052ebf0..3ea05b9 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -127,7 +127,7 @@ int main() {
pb.rp_target(dev->get_backbuffer(), { r, 0x00, 0xff, 0xff });
Render_Pass& pass = pb.build_rp();
- pb.begin();
+ pb.begin(dev);
pb.shader(shader->id);
pb.vertex_format(shader->vf);
pb.texture(