summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/model.cpp b/model.cpp
index dac91e4..4c3e40f 100644
--- a/model.cpp
+++ b/model.cpp
@@ -127,14 +127,15 @@ void Model::render(
.offset = 0
};
Draw draw{};
- Pipeline_Builder pb(a);
+ Pipeline_Builder pb(a, dev);
draw.verts = vbb;
draw.inds = ibb;
draw.vertex_count = mesh.count;
draw.instance_count = 1;
draw.first_vertex = mesh.offset;
draw.vertex_offset = mesh.vbo_offset;
- pb.begin(dev);
+ pb.begin();
+ pb.depth(true, true, Depth_Mode::less);
pb.shader(mesh.shader);
pb.cbuffer(
shader.descriptor_binding("config_buffer"),