summaryrefslogtreecommitdiff
path: root/c2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c2.cpp')
-rw-r--r--c2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/c2.cpp b/c2.cpp
index 5268117..e4834ad 100644
--- a/c2.cpp
+++ b/c2.cpp
@@ -236,6 +236,7 @@ struct Sky {
cb->iview = cam.get_view().inverse();
cb->iprojection = cam.get_proj().inverse();
config.unmap(d);
+ config.update(d->get_ctx());
render_imp(
d,
a,
@@ -284,7 +285,6 @@ struct Sky {
draw.verts = vbb;
draw.vertex_count = 3;
draw.instance_count = 1;
- config.update(ctx);
ctx.submit(draw, pip, pass);
}
};
@@ -407,7 +407,6 @@ struct Env_Probe {
Context& ctx = dev->get_ctx();
update_cbuffer(dev);
for (i = 0; i < 6; i++) {
- ctx.transition(faces[i], Resource_State::render_target);
pb.begin_rp();
pb.rp_target(faces[i], Clear_Mode::discard);
pb.rp_depth_target(cubemap_depth, 1.0f);
@@ -421,7 +420,6 @@ struct Env_Probe {
cubemap_res,
cubemap_res
);
- ctx.transition(faces[i], Resource_State::shader_read);
}
}
};