summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.cpp b/model.cpp
index 5806655..aa65898 100644
--- a/model.cpp
+++ b/model.cpp
@@ -386,8 +386,8 @@ void Model_Instance::render(
} else {
pb.depth(true, false, Depth_Mode::equal);
pb.shader(mesh.shader);
- pb.sbuffer(mesh.light_binding, lighting->lights.gpuonly);
- pb.sbuffer(mesh.casters_binding, lighting->casters.gpuonly);
+ pb.sbuffer(mesh.light_binding, lighting->gpu_lights.gpuonly);
+ pb.sbuffer(mesh.casters_binding, lighting->gpu_casters.gpuonly);
pb.texture(mesh.shadowmaps_binding, res.shadows, res.sampler);
mesh.material->use(pb, res.sampler, dev->get_shader(mesh.shader));
pb.cbuffer(